fix is_open_for_signup missing param

add a missing param to SocialAccountAdapter.is_open_for_signup
This commit is contained in:
blueness 2016-02-16 09:23:57 +08:00
parent 7c4a753b8d
commit 25b0544c2f

View File

@ -10,5 +10,5 @@ class AccountAdapter(DefaultAccountAdapter):
class SocialAccountAdapter(DefaultSocialAccountAdapter):
def is_open_for_signup(self, request):
def is_open_for_signup(self, request, sociallogin):
return getattr(settings, 'ACCOUNT_ALLOW_REGISTRATION', True)