Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect routing on sign-in #25

Closed
jwaltz opened this issue Oct 17, 2013 · 6 comments
Closed

Incorrect routing on sign-in #25

jwaltz opened this issue Oct 17, 2013 · 6 comments

Comments

@jwaltz
Copy link
Contributor

jwaltz commented Oct 17, 2013

Currently the sign-in code is as follows:

Template.entrySignIn.events
'submit #signIn': (event) ->
event.preventDefault()
Session.set('email', $('input[name="email"]').val())
Session.set('password', $('input[name="password"]').val())

Meteor.loginWithPassword(Session.get('email'), Session.get('password'), (error)->
  if error
    Session.set('entryError', error.reason)
  else
    Router.go('/')
)

Shouldn't that Router.go('/') be:
Router.go Session.get('entrySettings').dashboardRoute
?

@ryw ryw closed this as completed in 981fa42 Oct 17, 2013
@ryw
Copy link
Contributor

ryw commented Oct 17, 2013

Thanks for catching bug, Jonathan :)

@jwaltz
Copy link
Contributor Author

jwaltz commented Oct 18, 2013

You're welcome and thank you for the fantastic package

@nikolaygit
Copy link

If I install "accounts-entry" with mrt, I don't get this bug fixed. Could you please update the version?

@queso
Copy link
Contributor

queso commented Oct 20, 2013

Sure, gimme a few minutes to push it.

@queso
Copy link
Contributor

queso commented Oct 20, 2013

Pushed and updated the changelog. Try updating with meteorite now.

@nikolaygit
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants