Skip to main content

password_changed

Inform all validators that have implemented a password_changed() method that the password has been changed.

def password_changed(
password: string,
user: object = None,
password_validators: list = None
) - > null

Inform all validators that have implemented a password_changed() method that the password has been changed.

Parameters

NameTypeDescription
passwordstringThe new raw password string that has been set for the user.
userobject = NoneThe user instance whose password was changed, used by validators to associate the change with a specific account.
password_validatorslist = NoneA collection of validator instances to notify; if None, the system's default password validators are used.

Returns

TypeDescription
nullNothing is returned; this function is called for its side effects on validator state.