mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
Merge pull request #3172 from sebgie/issue#3145
Redirect setup if authenticated
This commit is contained in:
commit
82845686c3
@ -2,7 +2,12 @@ import styleBody from 'ghost/mixins/style-body';
|
||||
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
||||
|
||||
var SetupRoute = Ember.Route.extend(styleBody, loadingIndicator, {
|
||||
classNames: ['ghost-setup']
|
||||
classNames: ['ghost-setup'],
|
||||
beforeModel: function () {
|
||||
if (this.get('session').isAuthenticated) {
|
||||
this.transitionTo(Ember.SimpleAuth.routeAfterAuthentication);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export default SetupRoute;
|
||||
|
Loading…
Reference in New Issue
Block a user