~edwargix/git.sr.ht

c693d168cff78f6a6b59aee3b015cce765212ee4 — Drew DeVault 7 years ago 2b65f76
Use remember=True for login_user
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/auth.py
M gitsrht/blueprints/auth.py => gitsrht/blueprints/auth.py +1 -1
@@ 70,7 70,7 @@ def oauth_callback():
    user.oauth_token_scopes = scopes
    db.session.commit()

    login_user(user)
    login_user(user, remember=True)
    if not state or not state.startswith("/"):
        return redirect("/")
    else: