diff --git a/AuthApp/views.py b/AuthApp/views.py index 872eeda..9650529 100644 --- a/AuthApp/views.py +++ b/AuthApp/views.py @@ -117,7 +117,11 @@ def logout_View(request): def login_View(request): - Dict = {} + from allauth.socialaccount.models import SocialApp + auth_google_allow = SocialApp.objects.filter(provider='google') + Dict = { + 'auth_google_allow': auth_google_allow + } t = loader.get_template('pages/profile/p_login.html') return get_inter_http_respose(t, Dict, request) diff --git a/templates/forms/f_login.html b/templates/forms/f_login.html index 81368bb..c55af35 100644 --- a/templates/forms/f_login.html +++ b/templates/forms/f_login.html @@ -30,13 +30,17 @@
-
+