diff --git a/core/client/routes/reset.js b/core/client/routes/reset.js index c938105cdc..ad32957406 100644 --- a/core/client/routes/reset.js +++ b/core/client/routes/reset.js @@ -3,6 +3,12 @@ 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.', true); + this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication); + } + }, setupController: function (controller, params) { controller.token = params.token; } diff --git a/core/client/routes/signup.js b/core/client/routes/signup.js index d6930a4779..0801a15b56 100644 --- a/core/client/routes/signup.js +++ b/core/client/routes/signup.js @@ -5,6 +5,7 @@ var SignupRoute = Ember.Route.extend(styleBody, loadingIndicator, { classNames: ['ghost-signup'], beforeModel: function () { if (this.get('session').isAuthenticated) { + this.notifications.showWarn('You need to sign out to register as a new user.', true); this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication); } },