refactor(templates): migrate authentication URLs to django-allauth
Update all authentication-related template URLs from Django's default auth
URL names ('login', 'password_reset') to django-allauth's URL names
('account_login', 'account_reset_password') for consistency with the
authentication backend migration.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
Your personal knowledge library — organise, embed, and retrieve
|
||||
content across books, music, film, art, and journals.
|
||||
</p>
|
||||
<a href="{% url 'login' %}" class="btn btn-primary btn-lg">Log In</a>
|
||||
<a href="{% url 'account_login' %}" class="btn btn-primary btn-lg">Log In</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="card-body items-center text-center">
|
||||
<h2 class="card-title text-2xl mb-4">You have been logged out</h2>
|
||||
<p class="mb-6 text-base-content/70">Thanks for using {{ themis_app_name }}.</p>
|
||||
<a href="{% url 'login' %}" class="btn btn-primary">Log In Again</a>
|
||||
<a href="{% url 'account_login' %}" class="btn btn-primary">Log In Again</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url 'login' %}">
|
||||
<form method="post" action="{% url 'account_login' %}">
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="form-control mb-4">
|
||||
@@ -40,7 +40,7 @@
|
||||
class="input input-bordered w-full{% if form.errors %} input-error{% endif %}"
|
||||
required>
|
||||
<label class="label">
|
||||
<a href="{% url 'password_reset' %}" class="label-text-alt link link-hover">
|
||||
<a href="{% url 'account_reset_password' %}" class="label-text-alt link link-hover">
|
||||
Forgot password?
|
||||
</a>
|
||||
</label>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<p class="text-base-content/70 mb-6">
|
||||
Your password has been set. You can now log in with your new password.
|
||||
</p>
|
||||
<a href="{% url 'login' %}" class="btn btn-primary">Log In</a>
|
||||
<a href="{% url 'account_login' %}" class="btn btn-primary">Log In</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
This password reset link is invalid or has expired.
|
||||
Please request a new one.
|
||||
</p>
|
||||
<a href="{% url 'password_reset' %}" class="btn btn-primary">Request New Link</a>
|
||||
<a href="{% url 'account_reset_password' %}" class="btn btn-primary">Request New Link</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
If an account exists with that email address, we've sent password
|
||||
reset instructions. Check your inbox (and spam folder).
|
||||
</p>
|
||||
<a href="{% url 'login' %}" class="btn btn-primary">Back to Log In</a>
|
||||
<a href="{% url 'account_login' %}" class="btn btn-primary">Back to Log In</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<div class="divider">OR</div>
|
||||
|
||||
<div class="text-center">
|
||||
<a href="{% url 'login' %}" class="link link-hover text-sm">Back to Log In</a>
|
||||
<a href="{% url 'account_login' %}" class="link link-hover text-sm">Back to Log In</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
{% include "themis/includes/notification_bell.html" %}
|
||||
{% include "themis/includes/user_menu.html" %}
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}" class="btn btn-primary btn-sm">Log in</a>
|
||||
<a href="{% url 'account_login' %}" class="btn btn-primary btn-sm">Log in</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user