$user->validatePassword()
Compares the given password with the stored one
Parameters
Name | Type | Default |
---|---|---|
$password | string |null |
null |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\NotFoundException |
If the user has no password |
Kirby\Exception\InvalidArgumentException |
If the entered password is not valid or does not match the user password |