From ff5550c82b74aa5f860b94b1abf8912c12f01b45 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 13 Mar 2014 13:47:50 -0400 Subject: [PATCH] util: fix "login card" smartcard detection on unlock screen We only want to react to the card the user logged in with, at the unlock screen. We check "at the unlock screen" by checking the "reauthenticating" state variable. That variable is the wrong one, though. It gets set too late, and in some cases, gets set at the login screen, too. We should be checking this._reauthOnly instead. This commit fixes that. https://bugzilla.gnome.org/show_bug.cgi?id=726262 --- js/gdm/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/gdm/util.js b/js/gdm/util.js index 425b16ed5..a3329e001 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -298,7 +298,7 @@ const ShellUserVerifier = new Lang.Class({ if (!this._settings.get_boolean(SMARTCARD_AUTHENTICATION_KEY)) smartcardDetected = false; - else if (this.reauthenticating) + else if (this._reauthOnly) smartcardDetected = this._smartcardManager.hasInsertedLoginToken(); else smartcardDetected = this._smartcardManager.hasInsertedTokens();