mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Keep spinner running on successful signin
No Issue - Removes the toggle of spinner for successful authentication
This commit is contained in:
parent
5c3fc55a17
commit
4b6f28ded5
1 changed files with 2 additions and 3 deletions
|
@ -21,9 +21,8 @@ export default Ember.Controller.extend(ValidationEngine, {
|
||||||
authStrategy = 'ghost-authenticator:oauth2-password-grant',
|
authStrategy = 'ghost-authenticator:oauth2-password-grant',
|
||||||
data = model.getProperties(this.authProperties);
|
data = model.getProperties(this.authProperties);
|
||||||
|
|
||||||
this.get('session').authenticate(authStrategy, data).then(function () {
|
// Authentication transitions to posts.index, we can leave spinner running unless there is an error
|
||||||
self.toggleProperty('loggingIn');
|
this.get('session').authenticate(authStrategy, data).catch(function (err) {
|
||||||
}).catch(function (err) {
|
|
||||||
self.toggleProperty('loggingIn');
|
self.toggleProperty('loggingIn');
|
||||||
|
|
||||||
if (err.errors) {
|
if (err.errors) {
|
||||||
|
|
Loading…
Reference in a new issue