password reset flow

This commit is contained in:
2026-11-05 14:19:49 +01:00
parent e89df68e7d
commit c95173cda8
8 changed files with 425 additions and 0 deletions
@@ -37,6 +37,26 @@ defmodule Chesstrainer.Accounts.UserNotifier do
""")
end
@doc """
Deliver instructions to reset a user password.
"""
def deliver_reset_password_instructions(user, url) do
deliver(user.email, "Reset password instructions", """
==============================
Hi #{user.email},
You can reset your password by visiting the URL below:
#{url}
If you didn't request this change, please ignore this.
==============================
""")
end
@doc """
Deliver instructions to update a user email.
"""