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

Accounts.verifyPhone() not working properly #28

Open
vbnlohani opened this issue Aug 15, 2016 · 5 comments
Open

Accounts.verifyPhone() not working properly #28

vbnlohani opened this issue Aug 15, 2016 · 5 comments

Comments

@vbnlohani
Copy link

Hey, Your package is really of great help, I just had a small issue.

Whenever i try to verify a phone number using the verifyPhone() method, it returns an error in the callback with error 403 saying not a valid code and the user in not logged in instead he is logged out ( I actually logged the user in and then based on whether the phone is verified or not i show him the verification page or home screen).

But after this execution, if i check the database, the user phone is verified and the next time the user logs in, he is directly shown the home page not the verification page.

Any help would be appreciated.

@abhishekbatra
Copy link

The problem is the verifyPhone method in the file phone_server.js. It calls
Accounts._clearAllLoginTokens(user._id);
even when a new password is not passed to the method. For my use case, I just commented this line. The author's opinion here would be useful.

@vbnlohani
Copy link
Author

Yep,
I also had to comment that line.

@balibou
Copy link

balibou commented Dec 14, 2016

@abhishekbatra @Vaibhav241196
Hello guys, is there any side effect to comment this line ?
Cheers

@abhishekbatra
Copy link

abhishekbatra commented Dec 14, 2016 via email

@balibou
Copy link

balibou commented Dec 14, 2016

ok thanks @abhishekbatra

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

3 participants