[Python-modules-commits] [python-social-auth] 42/131: Fix Mixed-content error of loading http over https scheme after diconnect of social account

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:16:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.20
in repository python-social-auth.

commit 494c400aa08991feeba5d738ffabc98b10dda324
Author: andela-kerinoso <kolawole.erinoso at andela.com>
Date:   Tue May 10 13:09:22 2016 +0100

    Fix Mixed-content error of loading http over https scheme after diconnect of social account
---
 social/actions.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/social/actions.py b/social/actions.py
index 4b005cf..a0e4e5b 100644
--- a/social/actions.py
+++ b/social/actions.py
@@ -110,8 +110,10 @@ def do_disconnect(backend, user, association_id=None, redirect_name='next',
 
     if isinstance(response, dict):
         response = backend.strategy.redirect(
-            backend.strategy.request_data().get(redirect_name, '') or
-            backend.setting('DISCONNECT_REDIRECT_URL') or
-            backend.setting('LOGIN_REDIRECT_URL')
+            backend.strategy.absolute_uri(
+                backend.strategy.request_data().get(redirect_name, '') or
+                backend.setting('DISCONNECT_REDIRECT_URL') or
+                backend.setting('LOGIN_REDIRECT_URL')
+            )
         )
     return response

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list