Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Fix login screen not closing (#3122)
Dieser Commit ist enthalten in:
Ursprung
dc810f1d39
Commit
ab4800c4f2
@ -310,7 +310,14 @@ public class LoginEncryptionUtils {
|
|||||||
.label("geyser.auth.login.form.details.desc")
|
.label("geyser.auth.login.form.details.desc")
|
||||||
.input("geyser.auth.login.form.details.email", "account@geysermc.org", "")
|
.input("geyser.auth.login.form.details.email", "account@geysermc.org", "")
|
||||||
.input("geyser.auth.login.form.details.pass", "123456", "")
|
.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())));
|
.validResultHandler((response) -> session.authenticate(response.next(), response.next())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren