mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
authPrompt: Don't ever ask for a username if smartcard service is in foreground
The smartcard service is put in the foreground in two cases: 1) If password service is disabled by admin configuratoin 2) if a smartcard is inserted In either case we don't want to ask the user to pick a user from the userlist. We currently only avoid asking in case 2. This commit fixes case 1. https://bugzilla.gnome.org/show_bug.cgi?id=726263
This commit is contained in:
parent
39a36cb510
commit
f6ed3d9f88
1 changed files with 1 additions and 2 deletions
|
|
@ -450,8 +450,7 @@ const AuthPrompt = new Lang.Class({
|
|||
// respond to the request with the username
|
||||
beginRequestType = BeginRequestType.PROVIDE_USERNAME;
|
||||
} else if (this._userVerifier.serviceIsForeground(GdmUtil.OVIRT_SERVICE_NAME) ||
|
||||
(this.smartcardDetected &&
|
||||
this._userVerifier.serviceIsForeground(GdmUtil.SMARTCARD_SERVICE_NAME))) {
|
||||
this._userVerifier.serviceIsForeground(GdmUtil.SMARTCARD_SERVICE_NAME)) {
|
||||
// We don't need to know the username if the user preempted the login screen
|
||||
// with a smartcard or with preauthenticated oVirt credentials
|
||||
beginRequestType = BeginRequestType.DONT_PROVIDE_USERNAME;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue