diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-07 21:03:11 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-07 21:03:11 +0100 |
commit | 2e21f37eaf031300b4f7ec0626333255f16e7bd0 (patch) | |
tree | 420922015307fde6156345a942f383313f7df180 /ctrack/users | |
parent | 2947010fe6fe3d54019164f9d8213a2fede55a45 (diff) |
big update! got working on gcloud and with log and new navbar
Diffstat (limited to 'ctrack/users')
-rw-r--r-- | ctrack/users/adapters.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ctrack/users/adapters.py b/ctrack/users/adapters.py index 0d206fa..b75f31a 100644 --- a/ctrack/users/adapters.py +++ b/ctrack/users/adapters.py @@ -1,7 +1,5 @@ -from typing import Any - from allauth.account.adapter import DefaultAccountAdapter -from allauth.socialaccount.adapter import DefaultSocialAccountAdapter +# from allauth.socialaccount.adapter import DefaultSocialAccountAdapter from django.conf import settings from django.http import HttpRequest @@ -11,6 +9,6 @@ class AccountAdapter(DefaultAccountAdapter): return getattr(settings, "ACCOUNT_ALLOW_REGISTRATION", True) -class SocialAccountAdapter(DefaultSocialAccountAdapter): - def is_open_for_signup(self, request: HttpRequest, sociallogin: Any): - return getattr(settings, "ACCOUNT_ALLOW_REGISTRATION", True) +# class SocialAccountAdapter(DefaultSocialAccountAdapter): +# def is_open_for_signup(self, request: HttpRequest, sociallogin: Any): +# return getattr(settings, "ACCOUNT_ALLOW_REGISTRATION", True) |