Skip to main content

is_password_usable

Return True if this password wasn't generated by User.set_unusable_password(), i.e. make_password(None).

def is_password_usable(
encoded: string
) - > boolean

Return True if this password wasn't generated by User.set_unusable_password(), i.e. make_password(None).

Parameters

NameTypeDescription
encodedstringThe encoded password string to check for the unusable prefix

Returns

TypeDescription
booleanTrue if the password string is valid for authentication, False if it represents an unusable password state