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

VerifyEmail should not be called on the server. #26

Merged
merged 3 commits into from
Jan 8, 2016

Conversation

timothyarmes
Copy link
Contributor

When using FlowRouter 3 with SSR support the routes are also executed on the server, however Accounts.verifyEmail() (which is executed when visiting the atVerifyEmail route) is only available on the client and caused a server error. This PR fixes that.

@splendido
Copy link
Member

Tnx!
...could you also have a look at the resetEmail and enrollAccount routes?
I don't expect calls to undefined methods but I'm curious to see whether the token is correctly picked up...

splendido added a commit that referenced this pull request Jan 8, 2016
Accounts.verifyEmail should not be called on the server.
@splendido splendido merged commit 9b8bfeb into meteor-useraccounts:master Jan 8, 2016
@splendido splendido changed the title VerifyEmail should not be called on the client. VerifyEmail should not be called on the server. Jan 8, 2016
@timothyarmes
Copy link
Contributor Author

I can confirm that the reset password link works fine for me. I can't easily test the enrolment email on my current project.

@splendido
Copy link
Member

Ok, fine, they share the same logic...
Tnx!

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.

2 participants