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

Specify password key in opts for check_pass.

Moggers opened this issue · comments

add_hash/2 takes a key hash_key in opts to specify where to put the password in the user struct, this opt isn't present in check_pass/3.

Could it be added and get_hash/1 be adjusted to take a key to fetch the hash from?

I'll look into it and get back to you soon.

I've just updated the hex package with these changes.

Version 4.1.0 lets you use hash_key as an option for check_pass.

@riverrun would be nice if you could add this change to the changelog file in the repo as well

Thanks for pointing that out - I've just updated it now.