mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Keep spinner running on successful signin
No Issue - Removes the toggle of spinner for successful authentication
This commit is contained in:
parent
5ea540d775
commit
e9eab53048
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user