Skip to main content

reset_hashers

Clears the internal caches for password hashers and algorithm-based hasher lookups when the PASSWORD_HASHERS setting is modified.

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

Clears the internal caches for password hashers when the PASSWORD_HASHERS setting is modified. This ensures that changes to the hashing configuration are reflected immediately in the application state.

Parameters

NameTypeDescription
settingstringThe name of the Django setting that was changed, used to determine if a cache reset is necessary.
**kwargsdictAdditional keyword arguments passed by the setting_changed signal dispatcher.

Returns

TypeDescription
nullNothing is returned; this function performs side effects on internal caches.