0.11.0 Google Auth

This commit is contained in:
SDE
2024-01-13 14:49:32 +03:00
parent bf18c96dbd
commit 2e1f3a10ab
4 changed files with 32 additions and 4 deletions

View File

@@ -1,12 +1,13 @@
{% load i18n %}
{% load socialaccount %}
{% trans "Логин" as p_login %}
{% trans "Пароль" as p_password %}
<section class="login">
<h1>{% translate "Войдите в профиль" %}</h1>
<h1>{% translate "Войдите в профиль" %}</h1>
<form class="login_form" name="login_form" method="post">
<form class="login_form" name="login_form" method="post">
{% csrf_token %}
<div>
{% if form.errors.all__ %}
@@ -31,7 +32,7 @@
<div class="agree_text_l">{% translate "Авторизуясь, вы соглашаетесь с Лицензионным соглашением Политикой конфиденциальности" %}</div>
<div id="reg_or_text">{% translate "Или" %}</div>
<a href="{% url 'social:begin' 'google-oauth2' %}">
<a href="{% provider_login_url 'google' %}">
<div id = "google_text" class="google"><img src="/static/img/png/google.png" alt="">
<div> {% translate "Войти через" %} Google</div>
</div>