megaqc.user package¶
Submodules¶
megaqc.user.forms module¶
User forms.
-
class
megaqc.user.forms.
AdminForm
(*args, **kwargs)[source]¶ Bases:
flask_wtf.form.Form
-
email
= <UnboundField(StringField, ('Email',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Email object>, <wtforms.validators.Length object>]})>[source]¶
-
first_name
= <UnboundField(StringField, ('First Name',), {'validators': [<wtforms.validators.Length object>]})>[source]¶
-
last_name
= <UnboundField(StringField, ('Last Name',), {'validators': [<wtforms.validators.Length object>]})>[source]¶
-
-
class
megaqc.user.forms.
PasswordChangeForm
(*args, **kwargs)[source]¶ Bases:
flask_wtf.form.Form
-
confirm
= <UnboundField(PasswordField, ('Verify password', [<wtforms.validators.DataRequired object>, <wtforms.validators.EqualTo object>]), {})>[source]¶
-
-
class
megaqc.user.forms.
RegisterForm
(*args, **kwargs)[source]¶ Bases:
flask_wtf.form.Form
Register form.
-
confirm
= <UnboundField(PasswordField, ('Verify password', [<wtforms.validators.DataRequired object>, <wtforms.validators.EqualTo object>]), {})>[source]¶
-
email
= <UnboundField(StringField, ('Email',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Email object>, <wtforms.validators.Length object>]})>[source]¶
-
first_name
= <UnboundField(StringField, ('First Name',), {'validators': [<wtforms.validators.Length object>]})>[source]¶
-
last_name
= <UnboundField(StringField, ('Last Name',), {'validators': [<wtforms.validators.Length object>]})>[source]¶
-
password
= <UnboundField(PasswordField, ('Password',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>]})>[source]¶
-
megaqc.user.models module¶
User models.
-
class
megaqc.user.models.
Role
(**kwargs)[source]¶ Bases:
sqlalchemy.orm.decl_api.Model
,megaqc.database.CRUDMixin
A role for a user.
-
class
megaqc.user.models.
User
(password=None, **kwargs)[source]¶ Bases:
sqlalchemy.orm.decl_api.Model
,megaqc.database.CRUDMixin
,flask_login.mixins.UserMixin
A user of the app.
megaqc.user.views module¶
User views.
Module contents¶
The user module.