File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/net/wurstclient/altmanager Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ public enum MicrosoftLoginManager
7575 createURL ("https://api.minecraftservices.com/minecraft/profile" );
7676
7777 /**
78- * Expected data: <code>sFTTag: ' <input type="hidden" name="PPFT"
79- * id="12345" value="random stuff"/>' </code>
78+ * Expected data: <code>" sFTTag": " <input type=\ "hidden\ " name=\ "PPFT\ "
79+ * id=\ "12345\ " value=\ "random stuff\ "/>" </code>
8080 *
8181 * <p>
8282 * This is all inside a long <script> tag on the {@link #LOGIN_URL}
8383 * webpage.
8484 */
8585 private static final Pattern PPFT_REGEX =
86- Pattern .compile ("sFTTag:[ ]?' .*value=\" (.*) \" />" );
86+ Pattern .compile ("\" sFTTag\" : \" .*value=\\ \\ \" ([^ \\ \\ ]+) \\ \\ \" />" );
8787
8888 /**
8989 * Expected data: <code>urlPost: 'https://login.live.com/...'</code>
@@ -92,10 +92,10 @@ public enum MicrosoftLoginManager
9292 * This appears earlier in the same <script> tag.
9393 */
9494 private static final Pattern URLPOST_REGEX =
95- Pattern .compile ("urlPost:[ ]?'(.+?(?=') )" );
95+ Pattern .compile ("\" urlPost\" : \" ([^ \" ]+ )" );
9696
9797 private static final Pattern AUTHCODE_REGEX =
98- Pattern .compile ("[?| &]code=([\\ w.-]+)" );
98+ Pattern .compile ("[?&]code=([\\ w\\ .-]+)" );
9999
100100 public static void login (String email , String password )
101101 throws LoginException
You can’t perform that action at this time.
0 commit comments