-
Notifications
You must be signed in to change notification settings - Fork 35
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
Email cannot be sent repeatedly, if Email send error #7
Comments
I think that if the authentication is successful, we should delete all tokens. Because if the verification email fails to be sent, they will never be deleted.
|
Thanks for your input! I am not sure if we want multiple email tokens per user to exist, so I think the |
For formal projects, it is appropriate to use Mailgun, but can I use my personal mailbox if tested locally? For example Gmail. I found two libraries. |
Currently, the example does not have the abstraction for email functionality, PR's are welcome though. Mailgun has a pretty good free tier for testing in my opinion, but you are of course more than welcome to use whatever provider you find fitting. |
In my opinion there could be cases where users could verify more than one email.
I never bothered deleting my email verification tokens and used them to note the verification date.
Fwiw.
…Sent from my iPhone
On May 9, 2020, at 4:01 AM, Mads Odgaard ***@***.***> wrote:
Thanks for your input! I am not sure if we want multiple email tokens per user to exist, so I think the unique constraint is fine. However, all previous tokens should be deleted on POST api/auth/email-verification
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Should be removed
.unique(on: "user_id")
The text was updated successfully, but these errors were encountered: