Skip to content

Kirby 4.5.0

user.changePassword:before

/site/config/config.php
return [
    'hooks' => [
        'user.changePassword:before' => function (Kirby\Cms\User $user, string $password) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$user Kirby\Cms\User
$password string