\TriTan\Interfaces\PasswordPasswordCheckInterface

Summary

Methods
Constants
check()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

check()

check(string  $password, string  $hash, integer  $user_id) : boolean

Checks a plain text password against a hashed password.

Parameters

string $password

Plain test password.

string $hash

Hashed password in the database to check against.

integer $user_id

User ID.

Returns

boolean —

True if the password and hash match, or false otherwise.