Models¶
- class newauth.models.User(**kwargs)¶
User model
- update_password(new_password)¶
Hash a new password to bcrypt.
Parameters: new_password (str) – The new password
- check_password(password)¶
Check if given password checks out. If the password is in a LDAP format, it will convert it to bcrypt.
Parameters: password (str) – The password to compare Returns: bool – If the password checks out or not
- update_status()¶
Loop around characters and keys to determinate best status.
Ineligible < Ally < Internal
:returns CharacterStatus – The status that was computed
- update_keys()¶
Update all API Keys and Characters associated.