gdm: use password authentication if all schemes are disabled

This prevents a traceback, at least.
This commit is contained in:
Ray Strode 2015-07-01 11:18:44 -04:00
parent 9ef1bc7273
commit 58827ba36d

View File

@ -419,6 +419,11 @@ var ShellUserVerifier = new Lang.Class({
this._defaultService = SMARTCARD_SERVICE_NAME; this._defaultService = SMARTCARD_SERVICE_NAME;
else if (this._haveFingerprintReader) else if (this._haveFingerprintReader)
this._defaultService = FINGERPRINT_SERVICE_NAME; this._defaultService = FINGERPRINT_SERVICE_NAME;
if (!this._defaultService) {
log("no authentication service is enabled, using password authentication");
this._defaultService = PASSWORD_SERVICE_NAME;
}
}, },
_startService: function(serviceName) { _startService: function(serviceName) {