mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-23 15:00:37 +01:00
Fix login screen not closing (#3122)
This commit is contained in:
parent
dc810f1d39
commit
ab4800c4f2
1 changed files with 8 additions and 1 deletions
|
@ -310,7 +310,14 @@ public class LoginEncryptionUtils {
|
|||
.label("geyser.auth.login.form.details.desc")
|
||||
.input("geyser.auth.login.form.details.email", "account@geysermc.org", "")
|
||||
.input("geyser.auth.login.form.details.pass", "123456", "")
|
||||
.closedOrInvalidResultHandler(() -> buildAndShowLoginDetailsWindow(session))
|
||||
.invalidResultHandler(() -> buildAndShowLoginDetailsWindow(session))
|
||||
.closedResultHandler(() -> {
|
||||
if (session.isMicrosoftAccount()) {
|
||||
buildAndShowMicrosoftAuthenticationWindow(session);
|
||||
} else {
|
||||
buildAndShowLoginWindow(session);
|
||||
}
|
||||
})
|
||||
.validResultHandler((response) -> session.authenticate(response.next(), response.next())));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue