$mapper
$mapper :
__construct(\TriTan\Interfaces\Password\PasswordSetMapperInterface $mapper, \TriTan\Interfaces\Password\PasswordHashInterface $hasher, \TriTan\Interfaces\Hooks\ActionFilterHookInterface $hook)
\TriTan\Interfaces\Password\PasswordSetMapperInterface | $mapper | |
\TriTan\Interfaces\Password\PasswordHashInterface | $hasher | |
\TriTan\Interfaces\Hooks\ActionFilterHookInterface | $hook |
check(string $password, string $hash, integer $user_id) : boolean
Checks a plain text password against a hashed password.
Uses check_password
filter.
string | $password | Plain test password. |
string | $hash | Hashed password in the database to check against. |
integer | $user_id | User ID. |
True if the password and hash match, or false otherwise.