status_page.models package¶
Submodules¶
status_page.models.User module¶
-
class
status_page.models.User.
User
(*args, **kwargs)¶ Bases:
sqlalchemy.ext.declarative.api.Model
Model that describes the ‘users’ SQL table A User stores a user’s information, including their email address, username and password hash
-
__init__
(*args, **kwargs)¶ Initializes the Model :param args: The constructor arguments :param kwargs: The constructor keyword arguments
-
email
¶ The user’s email address
-
get_id
() → str¶ Method required by flask-login :return: The user’s ID as a unicode string
-
id
¶ The ID is the primary key of the table and increments automatically
-
is_active
¶ Property required by flask-login :return: True
-
is_anonymous
¶ Property required by flask-login :return: True if the user is not confirmed, False otherwise
-
is_authenticated
¶ Property required by flask-login :return: True if the user is confirmed, False otherwise
-
password_hash
¶ The user’s hashed password, salted and hashed.
-
username
¶ The user’s username
-
verify_password
(password: str) → bool¶ Verifies a password against the password hash :param password: The password to check :return: True if the password matches, False otherwise
-