[gnome-shell/wip/rstrode/rhel-8.0.0: 5/50] smartcardManager: add way to detect if user logged using (any) token



commit 8593532801ebce54356608f857a175a5b23da787
Author: Ray Strode <rstrode redhat com>
Date:   Mon Sep 28 10:57:02 2015 -0400

    smartcardManager: add way to detect if user logged using (any) token
    
    If a user uses a token at login time, we need to make sure they continue
    to use the token at unlock time.
    
    As a prerequisite for addressing that problem we need to know up front
    if a user logged in with a token at all.
    
    This commit adds the necessary api to detect that case.

 js/misc/smartcardManager.js | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/js/misc/smartcardManager.js b/js/misc/smartcardManager.js
index 60808b371..a9a748fb3 100644
--- a/js/misc/smartcardManager.js
+++ b/js/misc/smartcardManager.js
@@ -112,6 +112,13 @@ var SmartcardManager = new Lang.Class({
             return false;
 
         return true;
+    },
+
+    loggedInWithToken() {
+        if (this._loginToken)
+            return true;
+
+        return false;
     }
 
 });


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