[gnome-shell] util: fix "login card" smartcard detection on unlock screen



commit ff5550c82b74aa5f860b94b1abf8912c12f01b45
Author: Ray Strode <rstrode redhat com>
Date:   Thu Mar 13 13:47:50 2014 -0400

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/gdm/util.js b/js/gdm/util.js
index 425b16e..a3329e0 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();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]