Package com.ericbouchut.learndev.auth
Class PasswordResetMailer
java.lang.Object
com.ericbouchut.learndev.auth.PasswordResetMailer
Sends the password-reset email. In development the message is caught by
Mailpit (web UI: http://localhost:8025); nothing leaves the machine.
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordResetMailer(org.springframework.mail.javamail.JavaMailSender mailSender, String from, Duration tokenTtl) -
Method Summary
-
Constructor Details
-
PasswordResetMailer
-
-
Method Details
-
sendResetEmail
- Parameters:
to- recipient email addressresetLink- absolute URL containing the RAW token; the raw token exists only in this email and in the URL bar, never in the database or the logs
-