diff --git a/js/gdm/util.js b/js/gdm/util.js index 89ad54497..84eb1315a 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -103,10 +103,22 @@ export class ShellUserVerifier extends Signals.EventEmitter { this._reauthOnly = params.reauthenticationOnly; this._client = client; + this._cancellable = null; this._defaultService = null; this._preemptingService = null; + this._messageQueue = []; + this._messageQueueTimeoutId = 0; + + this._failCounter = 0; + this._unavailableServices = new Set(); + + this._credentialManagers = {}; + + this.reauthenticating = false; + this.smartcardDetected = false; + this._settings = new Gio.Settings({schema_id: LOGIN_SCREEN_SCHEMA}); this._settings.connect('changed', this._updateDefaultService.bind(this)); @@ -131,15 +143,6 @@ export class ShellUserVerifier extends Signals.EventEmitter { 'smartcard-inserted', this._checkForSmartcard.bind(this), 'smartcard-removed', this._checkForSmartcard.bind(this), this); - this._messageQueue = []; - this._messageQueueTimeoutId = 0; - this.reauthenticating = false; - - this._failCounter = 0; - this._unavailableServices = new Set(); - - this._credentialManagers = {}; - this.addCredentialManager(OVirt.SERVICE_NAME, OVirt.getOVirtCredentialsManager()); this.addCredentialManager(Vmware.SERVICE_NAME, Vmware.getVmwareCredentialsManager()); }