From 28f279a4aba9e48bb8b01808a0f7b5f1776adfb4 Mon Sep 17 00:00:00 2001 From: krek0 Date: Sun, 17 May 2026 07:03:43 +0200 Subject: [PATCH] Remove social connections page and restrict email settings to non-OAuth users --- photo21/templates/account/email.html | 3 - photo21/templates/base.html | 2 + .../templates/socialaccount/connections.html | 65 ------------------- photo21/urls.py | 3 +- photo21/views.py | 9 +++ 5 files changed, 13 insertions(+), 69 deletions(-) delete mode 100644 photo21/templates/socialaccount/connections.html diff --git a/photo21/templates/account/email.html b/photo21/templates/account/email.html index ee7a394..19fa9c5 100644 --- a/photo21/templates/account/email.html +++ b/photo21/templates/account/email.html @@ -15,9 +15,6 @@ SPDX-License-Identifier: GPL-3.0-or-later -
diff --git a/photo21/templates/base.html b/photo21/templates/base.html index ce771a1..cf80e1b 100644 --- a/photo21/templates/base.html +++ b/photo21/templates/base.html @@ -72,6 +72,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {% if request.user.is_authenticated %} + {% if not request.user.socialaccount_set.all %} + {% endif %}