gdmUtil: pave way for fingeprint to optionally be default auth service
Currently, fingerprint authentication is always a secondary thing. If a user wants to swipe their finger when the computer is asking for a password, so be it. This commit paves the way for making fingerprint auth optionally be the main way to authenticate. Currently there's no way to enable this, but in a future commit will honor enable-password-authentication=false in gsettings. https://bugzilla.gnome.org/show_bug.cgi?id=683437
This commit is contained in:
parent
df0aace025
commit
e3621e13ac
@ -373,17 +373,17 @@ const ShellUserVerifier = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onInfo: function(client, serviceName, info) {
|
_onInfo: function(client, serviceName, info) {
|
||||||
// We don't display fingerprint messages, because they
|
if (this.serviceIsForeground(serviceName)) {
|
||||||
// have words like UPEK in them. Instead we use the messages
|
this._queueMessage(info, 'login-dialog-message-info');
|
||||||
// as a cue to display our own message.
|
} else if (serviceName == FINGERPRINT_SERVICE_NAME &&
|
||||||
if (serviceName == FINGERPRINT_SERVICE_NAME &&
|
|
||||||
this._haveFingerprintReader) {
|
this._haveFingerprintReader) {
|
||||||
|
// We don't show fingeprint messages directly since it's
|
||||||
|
// not the main auth service. Instead we use the messages
|
||||||
|
// as a cue to display our own message.
|
||||||
|
|
||||||
// Translators: this message is shown below the password entry field
|
// Translators: this message is shown below the password entry field
|
||||||
// to indicate the user can swipe their finger instead
|
// to indicate the user can swipe their finger instead
|
||||||
this.emit('show-login-hint', _("(or swipe finger)"));
|
this.emit('show-login-hint', _("(or swipe finger)"));
|
||||||
} else if (this.serviceIsForeground(serviceName)) {
|
|
||||||
this._queueMessage(info, 'login-dialog-message-info');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user