From 4b6f28ded52a871a46666165a06dcf0e059680e7 Mon Sep 17 00:00:00 2001 From: cobbspur Date: Wed, 2 Sep 2015 16:26:36 +0100 Subject: [PATCH] Keep spinner running on successful signin No Issue - Removes the toggle of spinner for successful authentication --- core/client/app/controllers/signin.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/client/app/controllers/signin.js b/core/client/app/controllers/signin.js index efbf72670b..6cde209caa 100644 --- a/core/client/app/controllers/signin.js +++ b/core/client/app/controllers/signin.js @@ -21,9 +21,8 @@ export default Ember.Controller.extend(ValidationEngine, { authStrategy = 'ghost-authenticator:oauth2-password-grant', data = model.getProperties(this.authProperties); - this.get('session').authenticate(authStrategy, data).then(function () { - self.toggleProperty('loggingIn'); - }).catch(function (err) { + // Authentication transitions to posts.index, we can leave spinner running unless there is an error + this.get('session').authenticate(authStrategy, data).catch(function (err) { self.toggleProperty('loggingIn'); if (err.errors) {