Ash+Phoenix+Authentication Starter
I went through “Getting Started Ash Authentication Phoenix” yesterday, but if I want the “forgot password” flow, it looks like we should instead copy the dev subdirectory in the ash_authentication_phoenix repo and rename modules and directories. Is that the recommended way?
8 Replies
That doesn’t sound right to me.
You should just be able to enable that in the DSL
And then add a sender for it
… but .. the UI …
The built in UI will add a forgot password button
If that is enabled on the resource
How about the invalid password message
You just need to add the option to enable sign in tokens
The
sign_in_tokens_enabled? true
in your password strategy
The UI will adapt to that option being present and validate the password inline, getting a sign in token, on success hitting a controller to exchange the sign in token for a real token.Hm. I have that since it’s in the guide. When I type in any username and password it bounces me back to sign in without anything else. Maybe I need to seed a user first
Inspect the error in your auth controller
You are probably getting a different error
(Or you aren’t on the latest versions)
Thanks! I added a user and it’s working.
Strategies that can add UI buttons is just mind blowing