Add NopaqueForm as a base for all others

This commit is contained in:
Patrick Jentsch
2023-03-29 09:25:08 +02:00
parent 9de09519d6
commit 9b2353105e
13 changed files with 57 additions and 76 deletions

View File

@ -9,7 +9,7 @@ from . import bp
@bp.route('', methods=['GET', 'POST'])
@register_breadcrumb(bp, '.', '<i class="material-icons">home</i>')
def index():
form = LoginForm(prefix='login-form')
form = LoginForm()
if form.validate_on_submit():
user = User.query.filter((User.email == form.user.data.lower()) | (User.username == form.user.data)).first()
if user and user.verify_password(form.password.data):