Skip to content

Kirby 4.2.0

UserRules::validPassword()

Validates a password

UserRules::validPassword(Kirby\Cms\User $user, string $password): bool

Parameters

Name Type Default
$user * Kirby\Cms\User
$password * string

Return type

bool

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the password is too short

Parent class

Kirby\Cms\UserRules