fix oauth
All checks were successful
Docker / build (release) Successful in 8s

This commit is contained in:
krek0 2026-05-16 19:55:09 +02:00
parent 1de1cb4086
commit f5ddfb2c13
8 changed files with 34 additions and 6 deletions

View file

@ -15,10 +15,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
<div class="d-grid col-6 mx-auto">
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
</div>
{% if not SOCIALACCOUNT_ONLY %}
<hr/>
<p>{% blocktrans trimmed with site.name as site_name %}Please sign in with one
of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a>
for a {{ site_name }} account and sign in below:{% endblocktrans %}</p>
{% endif %}
{% include "socialaccount/snippets/login_extra.html" %}
@ -27,6 +29,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p>
{% endif %}
{% if not SOCIALACCOUNT_ONLY %}
<form method="post" action="{% url 'account_login' %}">{% csrf_token %}
{{ form|crispy }}
{% if redirect_field_value %}
@ -36,7 +39,8 @@ SPDX-License-Identifier: GPL-3.0-or-later
<button type="submit" class="btn btn-primary btn-lg my-2">{% trans "Sign In" %}</button>
</div>
</form>
<a class="link-secondary" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
{% url 'account_reset_password' as reset_url %}{% if reset_url %}<a class="link-secondary" href="{{ reset_url }}">{% trans "Forgot Password?" %}</a>{% endif %}
{% endif %}
</div>
</div>
<!-- <p class="small text-center mt-1">{% trans "If any problem, please contact the server owners at" %} <code>photos[at]crans.org</code>.</p> -->