diff options
author | Alexander Kabui | 2024-09-24 10:27:12 +0300 |
---|---|---|
committer | GitHub | 2024-09-24 10:27:12 +0300 |
commit | d88092a53ab9498b45149318a2850703b9ead456 (patch) | |
tree | 4cb9b1a79105e98f8a7adfdf92c71d886c50c642 /gn2/wqflask/oauth2/toplevel.py | |
parent | 66cd75d1a0be493c1740fe245c9d58f1a5dd3409 (diff) | |
parent | 105caf070ad3c46d51f8f375ad74115515372f05 (diff) | |
download | genenetwork2-d88092a53ab9498b45149318a2850703b9ead456.tar.gz |
Merge pull request #878 from genenetwork/chores/redirect-after-login-fixes
Minor fixes for redirect_url in session
Diffstat (limited to 'gn2/wqflask/oauth2/toplevel.py')
-rw-r--r-- | gn2/wqflask/oauth2/toplevel.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn2/wqflask/oauth2/toplevel.py b/gn2/wqflask/oauth2/toplevel.py index 425c598e..8dd57243 100644 --- a/gn2/wqflask/oauth2/toplevel.py +++ b/gn2/wqflask/oauth2/toplevel.py @@ -82,6 +82,7 @@ def authorisation_code(): "logged_in": True }) redirect_url = session.session_info().get("redirect_url", "/") + session.clear_redirect_url() return redirect(redirect_url) return no_token_post("auth/token", json=request_data).either( |