Followed the example in docs and I get an error
jakeperry opened this issue · 2 comments
jakeperry commented
I have followed the example in the docs inside my user.ex and I get the following error when trying to create a user...
** (UndefinedFunctionError) function Comeonin.Bcrypt.add_hash/1 is undefined or private
I am using the version of comonin that is installed with Coherence. I am using this method for our API and the coherence for the HTML front end.
jakeperry commented
I found the way to do it using v3.2 : Comeonin.Bcrypt.hashpwsalt(password)
riverrun commented
You need to add bcrypt_elixir as a dependency. In version 4 of Comeonin, it's an optional dependency.