1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00
Mailu/core/admin/mailu/sso/forms.py

12 lines
445 B
Python
Raw Normal View History

2021-10-29 10:18:50 +02:00
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()])
submitWebmail = fields.SubmitField(_('Sign in'))
2021-12-18 16:38:07 +02:00
submitAdmin = fields.SubmitField(_('Sign in'))