mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Remove unnecessary hard refresh on signout.
Refs #3488 - Hard refresh handled by ember-simple-auth.
This commit is contained in:
parent
558dbe58f9
commit
b1c75ce324
@ -1,6 +1,5 @@
|
||||
import styleBody from 'ghost/mixins/style-body';
|
||||
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
||||
import ghostPaths from 'ghost/utils/ghost-paths';
|
||||
|
||||
var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleBody, loadingIndicator, {
|
||||
classNames: ['ghost-signout'],
|
||||
@ -13,13 +12,7 @@ var SignoutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, styleB
|
||||
} else {
|
||||
this.send('invalidateSession');
|
||||
}
|
||||
|
||||
this.hardRefresh();
|
||||
},
|
||||
|
||||
hardRefresh: function () {
|
||||
window.location = ghostPaths().adminRoot + '/signin/';
|
||||
}
|
||||
});
|
||||
|
||||
export default SignoutRoute;
|
||||
|
Loading…
Reference in New Issue
Block a user