diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 2ef92e1bc..318bcfa02 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -198,9 +198,9 @@ const AuthPrompt = new Lang.Class({ this.cancelButton.hide(); if (passwordChar) { - if (this._mode == AuthPromptMode.UNLOCK_ONLY) + if (this._userVerifier.reauthenticating) this.nextButton.label = _("Unlock"); - else if (this._mode == AuthPromptMode.UNLOCK_OR_LOG_IN) + else this.nextButton.label = C_("button", "Sign In"); } else { this.nextButton.label = _("Next"); diff --git a/js/gdm/util.js b/js/gdm/util.js index 20540b7e2..1facf9881 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -121,6 +121,7 @@ const ShellUserVerifier = new Lang.Class({ this._messageQueue = []; this._messageQueueTimeoutId = 0; this.hasPendingMessages = false; + this.reauthenticating = false; this._failCounter = 0; }, @@ -129,6 +130,7 @@ const ShellUserVerifier = new Lang.Class({ this._cancellable = new Gio.Cancellable(); this._hold = hold; this._userName = userName; + this.reauthenticating = false; this._checkForFingerprintReader(); @@ -267,6 +269,7 @@ const ShellUserVerifier = new Lang.Class({ return; } + this.reauthenticating = true; this._connectSignals(); this._beginVerification(); this._hold.release();