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
ZachDaniel
ZachDaniel2y ago
Are you on the latest version of ash and ash authentication ? We’ve fixed this just the other day.
dewet
dewetOP2y ago
I'm on the latest released versions of everything. Should I be using master to get the fix?
:ash, "2.14.20"
:ash_authentication, "3.11.15"
:ash_authentication_phoenix, "1.8.2"
:ash_phoenix, "1.2.17"
:ash_postgres, "1.3.51"
:ash, "2.14.20"
:ash_authentication, "3.11.15"
:ash_authentication_phoenix, "1.8.2"
:ash_phoenix, "1.2.17"
:ash_postgres, "1.3.51"
ZachDaniel
ZachDaniel2y ago
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
dewet
dewetOP2y ago
Thanks a million, I'm happy to test it after you merge it. No rush.
ZachDaniel
ZachDaniel2y ago
okay, pushed a fix up mind trying it out? its in main but will release a version soon
dewet
dewetOP2y ago
👀 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:
{
:ash_authentication_phoenix,
git: "https://github.com/team-alembic/ash_authentication_phoenix"
},
{
:ash_authentication_phoenix,
git: "https://github.com/team-alembic/ash_authentication_phoenix"
},
ZachDaniel
ZachDaniel2y ago
New version should release shortly, I forgot to run the formatter so it didn't pass CI 😆
dewet
dewetOP2y ago
I just pulled it in. It is fixed in ash_authentication_phoenix 1.8.3 Thanks 🥳❤️

Did you find this page helpful?