From 7afb5036661dd9a2f4affc7bbdd64d8c1197ae26 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 7 Mar 2014 16:10:25 -0500 Subject: [PATCH] gdm: Rearrange code to make it slightly easier to read --- js/gdm/util.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/gdm/util.js b/js/gdm/util.js index 79deafd5e..9e2e069ea 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -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(); },