~roshless/nnrss

56574d51756fb77b9ea7e5530e2466338e570861 — Roshless 5 months ago fef4ea2
make session permanent
1 files changed, 1 insertions(+), 0 deletions(-)

M nnrss/views.py
M nnrss/views.py => nnrss/views.py +1 -0
@@ 190,6 190,7 @@ def login():
        password = handler.get_user_password(form.username.data)
        if password is not None and check_password_hash(password, form.password.data):
            session["logged_in"] = form.username.data
            session.permanent = True
            flash("Logged in", "info")
        else:
            flash("Wrong credentials", "error")