Skip to content

Kirby 5.1.1

$user->changePassword()

Changes the user password

$user->changePassword(string $password): Kirby\Cms\User

Parameters

Name Type Default
$passwordrequired string no default value

Return type

Kirby\Cms\User

This method does not modify the existing $user object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\User