Skip to content

Add an api to re-send verification mail #1452

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

Open
CliffHan opened this issue May 23, 2025 · 1 comment · May be fixed by #1456
Open

Add an api to re-send verification mail #1452

CliffHan opened this issue May 23, 2025 · 1 comment · May be fixed by #1456

Comments

@CliffHan
Copy link

Description

For now, the verification email may only be sent after a successful user registration.

There should be an api for the user to re-send verification token.

To Reproduce

refer to: https://github.com/loco-rs/loco/blob/master/loco-new/base_template/src/controllers/auth.rs#L65C17-L65C29

No other function called AuthMailer::send_welcome() except register()

Expected Behavior

In the controller, add an endpoint, maybe /auth/resend-verification-mail, or whatever.

It will make the /auth part more complete.

@CliffHan
Copy link
Author

And maybe the "Authentication Configuration" could be extended with something like a allow_only_verified_email_to_login.

@kumarUjjawal kumarUjjawal linked a pull request May 24, 2025 that will close this issue
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 a pull request may close this issue.

1 participant