base\Security validatePassword()

validatePassword() public method

Verifies a password against a hash.

See also generatePasswordHash().

public boolean validatePassword ( $password, $hash )
$password string

The password to verify.

$hash string

The hash to verify the password against.

return boolean

Whether the password is correct.

throws yii\base\InvalidParamException

on bad password/hash parameters or if crypt() with Blowfish hash is not available.

doc_Yii
2016-10-30 16:52:23
Comments
Leave a Comment

Please login to continue.