mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
3242c5b4a9
Refs #3521
18 lines
645 B
JavaScript
18 lines
645 B
JavaScript
import styleBody from 'ghost/mixins/style-body';
|
|
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
|
|
|
var ResetRoute = Ember.Route.extend(styleBody, loadingIndicator, {
|
|
classNames: ['ghost-reset'],
|
|
beforeModel: function () {
|
|
if (this.get('session').isAuthenticated) {
|
|
this.notifications.showWarn('You can\'t reset your password while you\'re signed in.', { delayed: true });
|
|
this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication);
|
|
}
|
|
},
|
|
setupController: function (controller, params) {
|
|
controller.token = params.token;
|
|
}
|
|
});
|
|
|
|
export default ResetRoute;
|