Skip to content

Kirby 3.9.8

UserRules::changePassword()

Validates if the password can be changed

UserRules::changePassword(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\PermissionException If the user is not allowed to change the password

Parent class

Kirby\Cms\UserRules