Closed pthompson closed 3 years ago
I got some help on the Elixir Slack, so we can close this.
Hi, @pthompson how did you solve this?
@pthompson Could you share how did you solve this?
Found it, you can do
@pow_assent_assocs [{:belongs_to, :user, :users, [type: EctoHashids.Types.U]}]
I am using EctoHashids to hash my user ids. EctoHashids uses custom Ecto types in its implementation. Thus I need to be able to customize the
pow_assent_user_identity_fields
to specify thebelongs_to
user type. For example, something like:belongs_to(name, @pow_user_mod, type: EctoHashids.Types.U)
What would be the best way to do this?