Remove social connections page and restrict email settings to non-OAuth users

This commit is contained in:
krek0 2026-05-17 07:03:43 +02:00
parent 997fd760d2
commit 28f279a4ab
5 changed files with 13 additions and 69 deletions

View file

@ -72,6 +72,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
</ul>
</li>
{% if request.user.is_authenticated %}
{% if not request.user.socialaccount_set.all %}
<li class="nav-item">
{% url 'account_email' as url %}
<a class="nav-link {% if request.path_info == url %}active{% endif %}" href="{{ url }}">
@ -81,6 +82,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% trans "Account" %}
</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="{% url 'account_logout' %}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-right" viewBox="0 0 16 16">