I am trying to figure out how best to implement an email-address change workflow in my Phoenix application using AshAuthentication. The workflow I would like is (written from the user’s point of view),
- Log in
- Go to user settings
- Enter new email address
- Re-authenticate
- Receive confirmation on new email address
- Receive security notice of this action on old email address
- Follow URL in confirmation email
Any other emails sent to the user after step 4 but before step 7 still go to the old email address.
It looks like the Confirmation Tutorial implements something more like,
- Log in
- Perform an update action to change my email address
(UI unspecified, so this could be equivalent to 2 and 3 above) - Receive confirmation on the new email address
- Follow URL in confirmation email
I’m not clear what happens to emails sent between steps 2 and 5.
Is the first workflow even possible with AshAuthentication today?






















