riverrun / comeonin

Password hashing specification for the Elixir programming language

Home Page:https://hex.pm/packages/comeonin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Followed the example in docs and I get an error

jakeperry opened this issue · comments

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.

I found the way to do it using v3.2 : Comeonin.Bcrypt.hashpwsalt(password)

You need to add bcrypt_elixir as a dependency. In version 4 of Comeonin, it's an optional dependency.