From 96366ddcfa5f638a234f9e1071c53d2e4636d8b5 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 27 Apr 2020 23:08:21 +0200 Subject: [PATCH] Deprecate social login, prettify some pages --- app/auth/__init__.py | 1 + app/auth/templates/auth/change_email.html | 39 +++--- app/auth/templates/auth/forgot_password.html | 2 +- app/auth/templates/auth/login.html | 114 ++++++------------ app/auth/templates/auth/mfa.html | 4 +- app/auth/templates/auth/register.html | 113 +++++------------ .../auth/register_waiting_activation.html | 17 +-- app/auth/templates/auth/social.html | 46 +++++++ app/auth/views/social.py | 14 +++ templates/single.html | 4 +- 10 files changed, 161 insertions(+), 193 deletions(-) create mode 100644 app/auth/templates/auth/social.html create mode 100644 app/auth/views/social.py diff --git a/app/auth/__init__.py b/app/auth/__init__.py index 1932940a..322cbd81 100644 --- a/app/auth/__init__.py +++ b/app/auth/__init__.py @@ -11,4 +11,5 @@ from .views import ( facebook, change_email, mfa, + social, ) diff --git a/app/auth/templates/auth/change_email.html b/app/auth/templates/auth/change_email.html index d92b6066..681b6b13 100644 --- a/app/auth/templates/auth/change_email.html +++ b/app/auth/templates/auth/change_email.html @@ -5,26 +5,29 @@ {% endblock %} {% block single_content %} - {% if error %} -