gdm: Remove the hold from AuthPrompt / UserVerifier
After the removal before, it's now unused.
This commit is contained in:
parent
97e0175f48
commit
6d8d094e0c
@ -472,16 +472,11 @@ const AuthPrompt = new Lang.Class({
|
||||
},
|
||||
|
||||
begin: function(params) {
|
||||
params = Params.parse(params, { userName: null,
|
||||
hold: null });
|
||||
params = Params.parse(params, { userName: null });
|
||||
|
||||
this.updateSensitivity(false);
|
||||
|
||||
let hold = params.hold;
|
||||
if (!hold)
|
||||
hold = new Batch.Hold();
|
||||
|
||||
this._userVerifier.begin(params.userName, hold);
|
||||
this._userVerifier.begin(params.userName);
|
||||
this.verificationStatus = AuthPromptStatus.VERIFYING;
|
||||
},
|
||||
|
||||
|
@ -163,9 +163,8 @@ const ShellUserVerifier = new Lang.Class({
|
||||
Lang.bind(this, this._oVirtUserAuthenticated));
|
||||
},
|
||||
|
||||
begin: function(userName, hold) {
|
||||
begin: function(userName) {
|
||||
this._cancellable = new Gio.Cancellable();
|
||||
this._hold = hold;
|
||||
this._userName = userName;
|
||||
this.reauthenticating = false;
|
||||
|
||||
@ -315,7 +314,6 @@ const ShellUserVerifier = new Lang.Class({
|
||||
|
||||
_reportInitError: function(where, error) {
|
||||
logError(error, where);
|
||||
this._hold.release();
|
||||
|
||||
this._queueMessage(_("Authentication error"), MessageType.ERROR);
|
||||
this._verificationFailed(false);
|
||||
@ -341,7 +339,6 @@ const ShellUserVerifier = new Lang.Class({
|
||||
this.reauthenticating = true;
|
||||
this._connectSignals();
|
||||
this._beginVerification();
|
||||
this._hold.release();
|
||||
},
|
||||
|
||||
_userVerifierGot: function(client, result) {
|
||||
@ -356,7 +353,6 @@ const ShellUserVerifier = new Lang.Class({
|
||||
|
||||
this._connectSignals();
|
||||
this._beginVerification();
|
||||
this._hold.release();
|
||||
},
|
||||
|
||||
_connectSignals: function() {
|
||||
@ -396,7 +392,6 @@ const ShellUserVerifier = new Lang.Class({
|
||||
},
|
||||
|
||||
_startService: function(serviceName) {
|
||||
this._hold.acquire();
|
||||
if (this._userName) {
|
||||
this._userVerifier.call_begin_verification_for_user(serviceName,
|
||||
this._userName,
|
||||
@ -410,8 +405,6 @@ const ShellUserVerifier = new Lang.Class({
|
||||
this._reportInitError('Failed to start verification for user', e);
|
||||
return;
|
||||
}
|
||||
|
||||
this._hold.release();
|
||||
}));
|
||||
} else {
|
||||
this._userVerifier.call_begin_verification(serviceName,
|
||||
@ -425,8 +418,6 @@ const ShellUserVerifier = new Lang.Class({
|
||||
this._reportInitError('Failed to start verification', e);
|
||||
return;
|
||||
}
|
||||
|
||||
this._hold.release();
|
||||
}));
|
||||
}
|
||||
},
|
||||
@ -493,7 +484,7 @@ const ShellUserVerifier = new Lang.Class({
|
||||
},
|
||||
|
||||
_retry: function() {
|
||||
this.begin(this._userName, new Batch.Hold());
|
||||
this.begin(this._userName);
|
||||
},
|
||||
|
||||
_verificationFailed: function(retry) {
|
||||
|
Loading…
Reference in New Issue
Block a user