2021-10-29 10:18:50 +02:00
|
|
|
from wtforms import validators, fields
|
2021-09-02 13:36:42 +02:00
|
|
|
from flask_babel import lazy_gettext as _
|
|
|
|
import flask_wtf
|
2021-09-02 17:08:50 +02:00
|
|
|
|
2021-09-02 13:36:42 +02:00
|
|
|
class LoginForm(flask_wtf.FlaskForm):
|
|
|
|
class Meta:
|
|
|
|
csrf = False
|
2021-10-27 23:51:49 +02:00
|
|
|
email = fields.StringField(_('E-mail'), [validators.Email(), validators.DataRequired()])
|
2021-09-02 13:36:42 +02:00
|
|
|
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
|
2021-10-27 23:51:49 +02:00
|
|
|
submitWebmail = fields.SubmitField(_('Sign in'))
|
2021-12-18 16:38:07 +02:00
|
|
|
submitAdmin = fields.SubmitField(_('Sign in'))
|