Fix minor bug in auth form
@@ -198,12 +198,12 @@ public class LoginEncryptionUtils {
String password = response.getInputResponses().get(2);
session.authenticate(email, password);
- } else {
- showLoginDetailsWindow(session);
- }
// Clear windows so authentication data isn't accidentally cached
windowCache.getWindows().clear();
+ } else {
+ showLoginDetailsWindow(session);
+ }
} else if (formId == AUTH_FORM_ID && window instanceof SimpleFormWindow) {
SimpleFormResponse response = (SimpleFormResponse) window.getResponse();
if (response != null) {
