gdm: Rearrange code to make it slightly easier to read

This commit is contained in:
Jasper St. Pierre 2014-03-07 16:10:25 -05:00
parent 0b9d01a1c0
commit 7afb503666

View File

@ -152,13 +152,10 @@ const ShellUserVerifier = new Lang.Class({
this.reauthenticating = false;
this._oVirtCredentialsManager = OVirt.getOVirtCredentialsManager();
this._oVirtCredentialsManager.connect('user-authenticated', Lang.bind(this, this._oVirtUserAuthenticated));
if (this._oVirtCredentialsManager.hasToken())
this._oVirtUserAuthenticated(this._oVirtCredentialsManager.getToken());
this._oVirtCredentialsManager.connect('user-authenticated',
Lang.bind(this, this._oVirtUserAuthenticated));
this._reset();
},