Skip to main content

auth_password_validators_changed

Clears the cache of default password validators when the AUTH_PASSWORD_VALIDATORS setting is modified.

def auth_password_validators_changed(
setting: string,
kwargs: dict
) - > null

Clears the internal cache of password validators when the AUTH_PASSWORD_VALIDATORS setting is modified. This ensures that any changes to password validation rules are immediately reflected in the application state.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was modified, used to determine if the password validator cache needs to be cleared.
kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullThis function does not return a value.