mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Merge pull request #5720 from ErisDS/password-flow
Don't clear password field until setup is complete
This commit is contained in:
commit
b40350b760
@ -123,7 +123,7 @@ export default Ember.Controller.extend({
|
||||
|
||||
notifications.showAlert(successCount + ' ' + invitationsString + ' sent!', {type: 'success', delayed: true});
|
||||
self.send('loadServerNotifications');
|
||||
self.transitionTo('posts.index');
|
||||
self.transitionToRoute('posts.index');
|
||||
}
|
||||
|
||||
self.toggleProperty('submitting');
|
||||
@ -143,7 +143,7 @@ export default Ember.Controller.extend({
|
||||
},
|
||||
skipInvite: function () {
|
||||
this.send('loadServerNotifications');
|
||||
this.transitionTo('posts.index');
|
||||
this.transitionToRoute('posts.index');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -79,7 +79,6 @@ export default Ember.Controller.extend(ValidationEngine, {
|
||||
identification: self.get('email'),
|
||||
password: self.get('password')
|
||||
}).then(function () {
|
||||
self.set('password', '');
|
||||
self.set('blogCreated', true);
|
||||
if (data.image) {
|
||||
self.sendImage(result.users[0])
|
||||
|
@ -31,5 +31,9 @@ export default Ember.Route.extend(styleBody, {
|
||||
return self.transitionTo('signin');
|
||||
}
|
||||
});
|
||||
},
|
||||
deactivate: function () {
|
||||
this._super();
|
||||
this.controllerFor('setup/two').set('password', '');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user