Skip to content

Commit

Permalink
Hot fix problem of login loop on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
haotangdsv committed Jun 2, 2015
1 parent 1a9d0ef commit 2f13416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/router.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Router.map ->
Session.set('buttonText', 'in')
@next()
onRun: ->
if Meteor.userId()
if Meteor.userId() and Meteor.user()
Router.go AccountsEntry.settings.dashboardRoute

if AccountsEntry.settings.signInTemplate
Expand Down

0 comments on commit 2f13416

Please sign in to comment.