Merge pull request #5720 from ErisDS/password-flow

Don't clear password field until setup is complete
This commit is contained in:
Kevin Ansfield 2015-08-26 12:41:18 +01:00
commit b40350b760
3 changed files with 6 additions and 3 deletions

View File

@ -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');
}
}
});

View File

@ -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])

View File

@ -31,5 +31,9 @@ export default Ember.Route.extend(styleBody, {
return self.transitionTo('signin');
}
});
},
deactivate: function () {
this._super();
this.controllerFor('setup/two').set('password', '');
}
});