Open sevenseacat opened 12 hours ago
Does the confirm_new_user
in the database come from the config in the resource?
Default config from ash_authentication.add_strategy password
:
confirmation :confirm_new_user do
monitor_fields([:email])
confirm_on_create?(true)
confirm_on_update?(false)
sender(Tunez.Accounts.User.Senders.SendNewUserConfirmationEmail)
end
I can't find anywhere it comes from the AA codebase...
I'm testing setting up a password reset flow and I'm getting an error when clicking the "Confirm your email address" link in the generated email - with a flash message "incorrect email or password".
The generated token is valid, and verifies as:
The
jti
andsub
match what I see in the database for the token.This token has
"act": "confirm"
though, when in the database the purpose is"confirm_new_user"
.Side note: This token, and password reset, both use the
act
key to store their purpose, but the sign in tokens usepurpose
- might also be important?