I am putting this as fix for bug/issue #70 . Now when user registers they can not sign in until their email is verified. After email is verified isVerified changes from false to true. And the verifyToken and verifyExpires change to null in mongoDb.
Some things to test
register and attempt login - should fail
verify email - should login
register with same email - should fail
I am putting this as fix for bug/issue #70 . Now when user registers they can not sign in until their email is verified. After email is verified isVerified changes from false to true. And the verifyToken and verifyExpires change to null in mongoDb.
Some things to test register and attempt login - should fail verify email - should login register with same email - should fail