[gnome-shell/wip/rstrode/rhel-7.9: 6/86] smartcardManager: add way to detect if user logged using (any) token
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/rhel-7.9: 6/86] smartcardManager: add way to detect if user logged using (any) token
- Date: Fri, 12 Feb 2021 19:04:05 +0000 (UTC)
commit 16016bd2d7ea112d694053ea0b48497e911954ff
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 60808b371a..503f788364 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: function() {
+ if (this._loginToken)
+ return true;
+
+ return false;
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]