authPrompt: set next button to next when asking for username

If the next button ever gets set to Sign In, it won't
get reset to next until the next question asked by pam.

This commit ensures it gets reset to Next when asking
for the username.

https://bugzilla.gnome.org/show_bug.cgi?id=752739
This commit is contained in:
Ray Strode 2015-07-17 12:57:21 -04:00
parent 3c8c5a5570
commit 4d12feff3e

View File

@ -432,6 +432,7 @@ const AuthPrompt = new Lang.Class({
let oldStatus = this.verificationStatus;
this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
this.cancelButton.reactive = true;
this.nextButton.label = _("Next");
if (this._userVerifier)
this._userVerifier.cancel();