mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
baf7c1192b
@ -1,6 +1,8 @@
|
|||||||
from flask_wtf import FlaskForm
|
from flask_wtf import FlaskForm
|
||||||
from wtforms import StringField, PasswordField, BooleanField, SubmitField
|
from wtforms import StringField, PasswordField, BooleanField, SubmitField
|
||||||
from wtforms.validators import DataRequired, Length, Email
|
from wtforms.validators import DataRequired, Length, Email, Regexp, EqualTo
|
||||||
|
from wtforms import ValidationError
|
||||||
|
from ..models import User
|
||||||
|
|
||||||
|
|
||||||
class LoginForm(FlaskForm):
|
class LoginForm(FlaskForm):
|
||||||
@ -11,6 +13,10 @@ class LoginForm(FlaskForm):
|
|||||||
submit = SubmitField('Log In')
|
submit = SubmitField('Log In')
|
||||||
|
|
||||||
|
|
||||||
|
class RegistrationForm(FlaskForm):
|
||||||
|
email = StringField('Email', validators=[DataRequired(), Length(1, 64), Email()])
|
||||||
|
|
||||||
|
|
||||||
class PasswordResetRequestForm(FlaskForm):
|
class PasswordResetRequestForm(FlaskForm):
|
||||||
email = StringField('Email', validators=[DataRequired(), Length(1, 64),
|
email = StringField('Email', validators=[DataRequired(), Length(1, 64),
|
||||||
Email()])
|
Email()])
|
||||||
|
Loading…
Reference in New Issue
Block a user