[gnome-shell/wip/rstrode/login-screen-extensions: 5/134] 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/login-screen-extensions: 5/134] smartcardManager: add way to detect if user logged using (any) token
- Date: Thu, 26 Aug 2021 19:30:56 +0000 (UTC)
commit 450148daf0bcdd63fa4d8bcf4418b291ea4b3b46
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 fda782d1e0..bb43c96e76 100644
--- a/js/misc/smartcardManager.js
+++ b/js/misc/smartcardManager.js
@@ -112,5 +112,12 @@ var SmartcardManager = class {
return true;
}
+ loggedInWithToken() {
+ if (this._loginToken)
+ return true;
+
+ return false;
+ }
+
};
Signals.addSignalMethods(SmartcardManager.prototype);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]