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
| Name | Type | Description |
|---|---|---|
| encoded | string | The encoded password string to check for the unusable prefix |
Returns
| Type | Description |
|---|---|
boolean | True if the password string is valid for authentication, False if it represents an unusable password state |