MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / needs_password_upgrade

Function needs_password_upgrade

apps/common/utils/common.py:84–89  ·  view source on GitHub ↗

Check if a stored password hash should be upgraded to PBKDF2. Returns True for legacy MD5 hashes.

(hashed_password)

Source from the content-addressed store, hash-verified

82
83
84def needs_password_upgrade(hashed_password):
85 """
86 Check if a stored password hash should be upgraded to PBKDF2.
87 Returns True for legacy MD5 hashes.
88 """
89 return _is_legacy_md5_hash(hashed_password)
90
91
92def group_by(list_source: List, key):

Callers 1

loginMethod · 0.90

Calls 1

_is_legacy_md5_hashFunction · 0.85

Tested by

no test coverage detected