Specify password key in opts for check_pass.
Moggers opened this issue · comments
Moggers commented
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?
David Whitlock commented
I'll look into it and get back to you soon.
David Whitlock commented
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.
Benjamin Milde commented
@riverrun would be nice if you could add this change to the changelog file in the repo as well
David Whitlock commented
Thanks for pointing that out - I've just updated it now.