gdm: don't clear user-verifier on reset automatically
Right, the common code between the login screen and the unlock screen handles clearing the user verifier when GDM sends a reset. We don't actually always want to clear the messages on reset in the unlock case, though, so doing it implicitly is problematic. This commit moves the clear() call from the common code to the specific reset handlers. https://bugzilla.gnome.org/show_bug.cgi?id=694688
This commit is contained in:
parent
aec0e75d73
commit
e9584cfcab
@ -691,6 +691,8 @@ const LoginDialog = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_reset: function() {
|
_reset: function() {
|
||||||
|
this._userVerifier.clear();
|
||||||
|
|
||||||
this._updateSensitivity(true);
|
this._updateSensitivity(true);
|
||||||
this._promptMessage.hide();
|
this._promptMessage.hide();
|
||||||
this._user = null;
|
this._user = null;
|
||||||
|
@ -346,8 +346,6 @@ const ShellUserVerifier = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onReset: function() {
|
_onReset: function() {
|
||||||
this.clear();
|
|
||||||
|
|
||||||
// Clear previous attempts to authenticate
|
// Clear previous attempts to authenticate
|
||||||
this._failCounter = 0;
|
this._failCounter = 0;
|
||||||
|
|
||||||
|
@ -255,6 +255,7 @@ const UnlockDialog = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onReset: function() {
|
_onReset: function() {
|
||||||
|
this._userVerifier.clear();
|
||||||
this.emit('failed');
|
this.emit('failed');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user