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
|
Your personal knowledge library — organise, embed, and retrieve
|
||||||
content across books, music, film, art, and journals.
|
content across books, music, film, art, and journals.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<div class="card-body items-center text-center">
|
<div class="card-body items-center text-center">
|
||||||
<h2 class="card-title text-2xl mb-4">You have been logged out</h2>
|
<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>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form method="post" action="{% url 'login' %}">
|
<form method="post" action="{% url 'account_login' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<div class="form-control mb-4">
|
<div class="form-control mb-4">
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
class="input input-bordered w-full{% if form.errors %} input-error{% endif %}"
|
class="input input-bordered w-full{% if form.errors %} input-error{% endif %}"
|
||||||
required>
|
required>
|
||||||
<label class="label">
|
<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?
|
Forgot password?
|
||||||
</a>
|
</a>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<p class="text-base-content/70 mb-6">
|
<p class="text-base-content/70 mb-6">
|
||||||
Your password has been set. You can now log in with your new password.
|
Your password has been set. You can now log in with your new password.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
This password reset link is invalid or has expired.
|
This password reset link is invalid or has expired.
|
||||||
Please request a new one.
|
Please request a new one.
|
||||||
</p>
|
</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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
If an account exists with that email address, we've sent password
|
If an account exists with that email address, we've sent password
|
||||||
reset instructions. Check your inbox (and spam folder).
|
reset instructions. Check your inbox (and spam folder).
|
||||||
</p>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
<div class="divider">OR</div>
|
<div class="divider">OR</div>
|
||||||
|
|
||||||
<div class="text-center">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@
|
|||||||
{% include "themis/includes/notification_bell.html" %}
|
{% include "themis/includes/notification_bell.html" %}
|
||||||
{% include "themis/includes/user_menu.html" %}
|
{% include "themis/includes/user_menu.html" %}
|
||||||
{% else %}
|
{% 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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user