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