[Python-modules-commits] [python-social-auth] 86/131: Allow POST requests for auth method so OpenID forms could use it that way.

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:17:06 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 8aca599083f69fbc4427f608554d4035c7d2dccf
Author: murchik <murchik at protonmail.com>
Date:   Mon Jul 25 04:29:18 2016 +0800

    Allow POST requests for auth method so OpenID forms could use it that way.
---
 social/apps/pyramid_app/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/apps/pyramid_app/views.py b/social/apps/pyramid_app/views.py
index 38ee4fa..7587ff9 100644
--- a/social/apps/pyramid_app/views.py
+++ b/social/apps/pyramid_app/views.py
@@ -5,7 +5,7 @@ from social.actions import do_auth, do_complete, do_disconnect
 from social.apps.pyramid_app.utils import psa, login_required
 
 
- at view_config(route_name='social.auth', request_method='GET')
+ at view_config(route_name='social.auth', request_method=('GET', 'POST'))
 @psa('social.complete')
 def auth(request):
     return do_auth(request.backend, redirect_name='next')

-- 
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