Skip to content

Kirby 3.8.4

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