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
ZachDaniel
ZachDaniel3y ago
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
Terris
TerrisOP3y ago
… but .. the UI …
ZachDaniel
ZachDaniel3y ago
The built in UI will add a forgot password button If that is enabled on the resource
Terris
TerrisOP3y ago
How about the invalid password message
ZachDaniel
ZachDaniel3y ago
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.
Terris
TerrisOP3y ago
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
ZachDaniel
ZachDaniel3y ago
Inspect the error in your auth controller You are probably getting a different error (Or you aren’t on the latest versions)
Terris
TerrisOP3y ago
Thanks! I added a user and it’s working. Strategies that can add UI buttons is just mind blowing

Did you find this page helpful?