mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #5720 from ErisDS/password-flow
Don't clear password field until setup is complete
This commit is contained in:
commit
3a03f8fda9
3 changed files with 6 additions and 3 deletions
|
@ -123,7 +123,7 @@ export default Ember.Controller.extend({
|
||||||
|
|
||||||
notifications.showAlert(successCount + ' ' + invitationsString + ' sent!', {type: 'success', delayed: true});
|
notifications.showAlert(successCount + ' ' + invitationsString + ' sent!', {type: 'success', delayed: true});
|
||||||
self.send('loadServerNotifications');
|
self.send('loadServerNotifications');
|
||||||
self.transitionTo('posts.index');
|
self.transitionToRoute('posts.index');
|
||||||
}
|
}
|
||||||
|
|
||||||
self.toggleProperty('submitting');
|
self.toggleProperty('submitting');
|
||||||
|
@ -143,7 +143,7 @@ export default Ember.Controller.extend({
|
||||||
},
|
},
|
||||||
skipInvite: function () {
|
skipInvite: function () {
|
||||||
this.send('loadServerNotifications');
|
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'),
|
identification: self.get('email'),
|
||||||
password: self.get('password')
|
password: self.get('password')
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
self.set('password', '');
|
|
||||||
self.set('blogCreated', true);
|
self.set('blogCreated', true);
|
||||||
if (data.image) {
|
if (data.image) {
|
||||||
self.sendImage(result.users[0])
|
self.sendImage(result.users[0])
|
||||||
|
|
|
@ -31,5 +31,9 @@ export default Ember.Route.extend(styleBody, {
|
||||||
return self.transitionTo('signin');
|
return self.transitionTo('signin');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
deactivate: function () {
|
||||||
|
this._super();
|
||||||
|
this.controllerFor('setup/two').set('password', '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue