View Source Comeonin behaviour (Comeonin v5.5.0)
Defines a behaviour for higher-level password hashing functions.
Summary
Callbacks
add_hash(password, opts)
deprecated
check_pass(user_struct, password, opts)
deprecated
Runs the password hash function, but always returns false.
Types
Callbacks
This callback is deprecated. This function will be removed in the next major version..
This callback is deprecated. This function will be removed in the next major version..
@callback check_pass(user_struct(), password(), opts()) :: {:ok, map()} | {:error, String.t()}
@callback no_user_verify(opts()) :: false
Runs the password hash function, but always returns false.
This function is intended to make it more difficult for any potential attacker to find valid usernames by using timing attacks. This function is only useful if it is used as part of a policy of hiding usernames.