Reference

Guide

User::hashPassword()

Hashes the user's password unless it is null, which will leave it as null

User::hashPassword(string|null $password): string|null

Parameters

Name Type Default Description
$password string|null

Return type

string|null

Source code

kirby/src/Cms/User.php#L282