Magic link with registration does not work.
This works just fine if I turn registration off.
Now, sign in fails with invalid username/password error message if I enable registration and use the following action
This is a brand new ash/phoenix project.
Any ideas of what may be happening?
4 Replies
🤔 Hmm...you should be able to IO.inspect the actual error in your auth_controller
@ZachDaniel I can try. the error shows up after I click the sign in button, the one that is rendered after you open the magik link
Right but that error message IIRC is produced in the code that is generated into your app
btw, does it matter that I created the user via a seed script?
found the issue. I added a role attribute to user, and it is required. and it was causing the changeset to fail which caused the sign in to fail.
setting the role in the magic_link action fixed the issue