1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-24 22:14:39 +02:00
Mailu/core/admin/mailu/sso/forms.py
Alexander Graf 27a5f9db65
Reformatting
2022-11-04 13:35:13 +01:00

13 lines
498 B
Python

from wtforms import validators, fields
from flask_babel import lazy_gettext as _
import flask_wtf
class LoginForm(flask_wtf.FlaskForm):
class Meta:
csrf = False
email = fields.StringField(_('E-mail'), [validators.Email(), validators.DataRequired()])
pw = fields.PasswordField(_('Password'), [validators.DataRequired()])
pwned = fields.HiddenField(label='', default=-1)
submitWebmail = fields.SubmitField(_('Sign in'))
submitAdmin = fields.SubmitField(_('Sign in'))