mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-11 19:04:24 +00:00
Add NopaqueForm as a base for all others
This commit is contained in:
1 parent
9de09519d6
commit
9b2353105e
13 files changed
+55
-74
No files matched your search
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user