Fix 'Remember Me'

This commit is contained in:
rubenwardy 2020-12-10 23:36:56 +00:00
parent 2ae4a2ed5a
commit 9ec91fc52d
2 changed files with 6 additions and 2 deletions

@ -61,7 +61,7 @@ def handle_login(form):
url_for("users.profile", username=user.username))
db.session.commit()
login_user(user)
login_user(user, remember=form.remember_me.data)
flash("Logged in successfully.", "success")
next = request.args.get("next")

@ -5,12 +5,16 @@ Flask-Login ~= 0.5
Flask-Menu ~= 0.7
Flask-Migrate ~= 2.3
Flask-SQLAlchemy ~= 2.3
Flask-Babel
Flask-Babel~=1.0
Flask-Mail~=0.9
Flask-WTF~=0.14.3
GitHub-Flask ~= 3.2
SQLAlchemy-Searchable ~= 1.1
markdown ~= 3.1
bleach ~= 3.1
passlib ~= 1.7
beautifulsoup4 ~= 4.6
celery ~= 4.4