the most common models for the whole project.
copyright: | (c) 2012 by roman semirook. |
---|---|
license: | bsd, see license for more details. |
Bases: object
Bases: flask_login.UserMixin, base.models.CRUDMixin, flask_sqlalchemy.Model
A basic user model, sufficient for authorization support.
Note that email is defined as unique, so we’ll be able to find a specific user given her email (get_by_email()).
The primary key is inherited from CRUDMixin (:attr::CRUDMixin.id)
Checks a password against a given salted and hashed password value, using werkzeug.security tools
Parameters: | password – |
---|---|
Returns: |
Retrieves a user from her email.
Parameters: |
|
---|---|
Returns: |