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.
This commit is contained in:
parent
1e0ec69c41
commit
8593532801
@ -112,6 +112,13 @@ var SmartcardManager = new Lang.Class({
|
||||
return false;
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
loggedInWithToken() {
|
||||
if (this._loginToken)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user