Browse Source

Fix crash when ESC is pressed on authentication.

sisyphus
AitBits 8 years ago committed by GitHub
parent
commit
2da23ec9a6
  1. 2
      themes/default/js/greeter.js

2
themes/default/js/greeter.js vendored

@ -678,7 +678,7 @@ class Theme {
this.selected_user = null;
this.auth_pending = false;
if ( $( event.target ).hasClass( 'alert' ) ) {
if ( event != null && $( event.target ).hasClass( 'alert' ) ) {
/* We were triggered by the authentication failed message being dismissed.
* Keep the same account selected so user can retry without re-selecting an account.
*/

Loading…
Cancel
Save