fix user getting redirected at each google login
This commit is contained in:
parent
7ea4c157a1
commit
bdc22f3c68
|
@ -116,6 +116,10 @@ def google_callback():
|
||||||
if "google_next_url" in session:
|
if "google_next_url" in session:
|
||||||
next_url = session["google_next_url"]
|
next_url = session["google_next_url"]
|
||||||
LOG.debug("redirect user to %s", next_url)
|
LOG.debug("redirect user to %s", next_url)
|
||||||
|
|
||||||
|
# reset the next_url to avoid user getting redirected at each login :)
|
||||||
|
session.pop("google_next_url", None)
|
||||||
|
|
||||||
return redirect(next_url)
|
return redirect(next_url)
|
||||||
else:
|
else:
|
||||||
LOG.debug("redirect user to dashboard")
|
LOG.debug("redirect user to dashboard")
|
||||||
|
|
Loading…
Reference in a new issue