From 0bfd9cb7e0ba942053cf3899b2e73f340161629c Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 3 Jun 2019 15:21:49 +0100 Subject: Automatically logout users This accompanies the new task assignment strategy. By logging users out, we have a chance of assigning them new tasks when they login again. If they would never be logged out, it wouldn't be straightforward to decide when to assign them new tasks. --- app/auth/forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/auth/forms.py') diff --git a/app/auth/forms.py b/app/auth/forms.py index 5bff46f..7758342 100644 --- a/app/auth/forms.py +++ b/app/auth/forms.py @@ -3,7 +3,7 @@ from flask import current_app from flask_wtf import FlaskForm -from wtforms import StringField, PasswordField, BooleanField, SubmitField +from wtforms import StringField, PasswordField, SubmitField from wtforms.validators import DataRequired, ValidationError, Email, EqualTo from app.models import User @@ -12,7 +12,6 @@ from app.models import User class LoginForm(FlaskForm): username = StringField("Username", validators=[DataRequired()]) password = PasswordField("Password", validators=[DataRequired()]) - remember_me = BooleanField("Remember Me") submit = SubmitField("Sign In") -- cgit v1.2.3