Skip to content

Kirby 3.6.6

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