AshAuthenticationPhoenix Reset Password errors after following the guide
After following the AshAuthenticationPhoenix guide. Everything works except following the reset password link, which raises an error.
I followed this guide https://ash-hq.org/docs/guides/ash_authentication_phoenix/latest/tutorials/getting-started-with-ash-authentication-phoenix
Ended up with this code https://github.com/dewetblomerus/red (This is the relevant commit: https://github.com/dewetblomerus/red/commit/3600d53a565c55dbe3f6dedba6e07138335dfab7)
I use http://localhost:4000/dev/mailbox to get the reset password link
Here is the error:
protocol Enumerable not implemented for %AshAuthentication.Strategy.Password.Resettable{
The stack trace:Ash HQ
Guide: Getting Started With Ash Authentication Phoenix
Read the "Getting Started With Ash Authentication Phoenix" guide on Ash HQ
GitHub
GitHub - dewetblomerus/red: Practice spelling Red Words
Practice spelling Red Words. Contribute to dewetblomerus/red development by creating an account on GitHub.
8 Replies
Are you on the latest version of ash and ash authentication ? We’ve fixed this just the other day.
I'm on the latest released versions of everything. Should I be using
master
to get the fix?
Hmm…it couldn’t hurt to try
Maybe I missed a part of the fix
Actually, yeah I think I just missed a part of the fix
Will fix when I’m at a computer
Thanks a million, I'm happy to test it after you merge it. No rush.
okay, pushed a fix up
mind trying it out?
its in
main
but will release a version soon👀
Boom 💥 That worked!
Thanks so much for the quick turnaround!
In case anyone else stumbles on this, here's what I changed in my
mix.exs
:
New version should release shortly, I forgot to run the formatter so it didn't pass CI 😆
I just pulled it in. It is fixed in
ash_authentication_phoenix 1.8.3
Thanks 🥳❤️