Reference

Guide

$user->validatePassword()

Compares the given password with the stored one

$user->validatePassword(string $password = null): bool

Parameters

Name Type Default Description
$password string null

Return type

bool

Exceptions

Type Description
NotFoundException

If the user has no password

InvalidArgumentException

If the entered password is not valid

InvalidArgumentException

If the entered password does not match the user password

Source code

kirby/src/Cms/User.php#L865