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

Redirect happening before login is finished processing #78

Merged
merged 6 commits into from
Feb 11, 2014

Conversation

dkoo761
Copy link
Contributor

@dkoo761 dkoo761 commented Feb 11, 2014

Fixed bug in which redirect to dashboardRoute was happening too fast (before loginWithPassword() was finished processing) resulting in the Router evaluating dashboardRoute while Meteor.user() is still null.

Now we redirect to dashboardRoute only after login is finished processing.

Fixed bug in which redirect to dashboardRoute was happening too fast (before loginWithPassword() was finished processing) resulting in the Router evaluating dashboardRoute while Meteor.user() is still null.

Now we redirect to dashboardRoute only after login is finished processing.
@queso
Copy link
Contributor

queso commented Feb 11, 2014

Hmm, what kind of stuff comes back from the error handling?

@queso
Copy link
Contributor

queso commented Feb 11, 2014

My worry with this PR is the errors will be in English while our package support internationalization...

…when we call Accounts.createUser since that’s where errors are most likely to happen. Error from Meteor.loginWithPassword is very unlikely since we’re logging them in with the account they just created.
@dkoo761
Copy link
Contributor Author

dkoo761 commented Feb 11, 2014

Good catch RE i18n :) I just updated the PR to fix that. Note that I put placeholder entries into german.coffee and spanish.coffee since I'm not fluent in either of those languages.

…e strings with “.” so that if they are chained together in the UI (multiple errors at the same time), the punctuation will be correct.
@queso queso mentioned this pull request Feb 11, 2014
queso added a commit that referenced this pull request Feb 11, 2014
Redirect happening before login is finished processing
@queso queso merged commit 7dcd070 into Differential:master Feb 11, 2014
@queso
Copy link
Contributor

queso commented Feb 11, 2014

Merging, thx for the help! We will clean up the translations in another PR.

@dkoo761 dkoo761 deleted the patch-2 branch February 11, 2014 18:23
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

Successfully merging this pull request may close these issues.

3 participants