Kaffy Admin with phx.gen.auth

I am trying to create a new user through kaffy admin , but i get this error

ArgumentError at POST /kaffy/accounts/user
field names given to change/put_change must be atoms, got: "email"

This sounds like it maybe Kaffy is trying to save a string when the Ecto schema is expecting an atom.

There is a new feature of Ecto that allows for Enums which may be the cause. Not sure if Kaffy has natural support for that yet (I do not use it myself).

1 Like