UserRules::changePassword()
Validates if the password can be changed
UserRules::changePassword(Kirby\Cms\User $user, string $password): void
Parameters
Name | Type | Default |
---|---|---|
$userrequired | Kirby\Cms\User |
no default value |
$passwordrequired | string |
no default value |
Exceptions
Type | Description |
---|---|
Kirby\Exception\PermissionException |
If the user is not allowed to change the password |