Skip to content

Commit

Permalink
Fix minor bug in auth form (GeyserMC#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-Ferguson authored Jan 5, 2021
1 parent 29e47cf commit b638931
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ public static boolean authenticateFromForm(GeyserSession session, GeyserConnecto
String password = response.getInputResponses().get(2);

session.authenticate(email, password);

// Clear windows so authentication data isn't accidentally cached
windowCache.getWindows().clear();
} else {
showLoginDetailsWindow(session);
}

// Clear windows so authentication data isn't accidentally cached
windowCache.getWindows().clear();
} else if (formId == AUTH_FORM_ID && window instanceof SimpleFormWindow) {
SimpleFormResponse response = (SimpleFormResponse) window.getResponse();
if (response != null) {
Expand Down

0 comments on commit b638931

Please sign in to comment.