diff --git a/shared/router.coffee b/shared/router.coffee index 9e12ddb4..0b947dd9 100644 --- a/shared/router.coffee +++ b/shared/router.coffee @@ -6,6 +6,9 @@ Router.map -> Session.set('entryError', undefined) Session.set('buttonText', 'in') onRun: -> + if Meteor.userId() + Router.go AccountsEntry.settings.dashboardRoute + if AccountsEntry.settings.signInTemplate @template = AccountsEntry.settings.signInTemplate