13 lines
656 B
Diff
13 lines
656 B
Diff
diff -rupN auth_oauth/controllers/main.py auth_oauth.patch/controllers/main.py
|
|
--- auth_oauth/controllers/main.py 2021-04-20 19:22:26.786894865 -0500
|
|
+++ auth_oauth.patch/controllers/main.py 2021-06-03 21:43:26.020870042 -0500
|
|
@@ -70,7 +70,7 @@ class OAuthLogin(Home):
|
|
return providers
|
|
|
|
def get_state(self, provider):
|
|
- redirect = request.params.get('redirect') or 'web'
|
|
+ redirect = request.params.get('redirect') or '/'
|
|
if not redirect.startswith(('//', 'http://', 'https://')):
|
|
redirect = '%s%s' % (request.httprequest.url_root, redirect[1:] if redirect[0] == '/' else redirect)
|
|
state = dict(
|