[Python-modules-commits] [python-social-auth] 218/322: Allow inactive users to login
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:13:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.10
in repository python-social-auth.
commit b91a190682db776dce5b70afb884426a9eec2343
Author: Lucas Roesler <roesler.lucas at gmail.com>
Date: Fri Apr 3 13:17:49 2015 -0600
Allow inactive users to login
- Allow inactive users to login, this is controlled by the
`SOCIAL_AUTH_INACTIVE_USER_LOGIN` setting.
---
social/actions.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/social/actions.py b/social/actions.py
index 8d18bfa..330a51c 100644
--- a/social/actions.py
+++ b/social/actions.py
@@ -74,6 +74,9 @@ def do_complete(backend, login, user=None, redirect_name='next',
url = setting_url(backend, redirect_value,
'LOGIN_REDIRECT_URL')
else:
+ if backend.setting('SOCIAL_AUTH_INACTIVE_USER_LOGIN', False):
+ social_user = user.social_user
+ login(backend, user, social_user)
url = setting_url(backend, 'INACTIVE_USER_URL', 'LOGIN_ERROR_URL',
'LOGIN_URL')
else:
--
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