Skip to content

Commit

Permalink
redirect user from sign-in if already signed in
Browse files Browse the repository at this point in the history
  • Loading branch information
musgravejw committed Jun 13, 2014
1 parent 2945454 commit 8e952fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/router.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8e952fb

Please # to comment.