Links between signin/login pages

This commit is contained in:
Klaas van Schelven
2024-05-29 16:25:12 +02:00
parent 9335461405
commit cc62056dce
4 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
from bugsink.app_settings import get_settings
from bugsink.app_settings import get_settings, CB_ANYBODY
def useful_settings_processor(request):
return {
'site_title': get_settings().SITE_TITLE,
'registration_enabled': get_settings().USER_REGISTRATION == CB_ANYBODY,
}
+5
View File
@@ -42,6 +42,11 @@
<button class="bg-slate-800 font-medium p-2 md:p-4 text-white uppercase w-full">Login</button>
</form>
<div class="mt-4">
<a href="{#{% url 'password_reset' TODO %}#}" class="text-slate-800">Forgot password?</a>
{% if registration_enabled %}<a href="{% url 'signup' %}" class="float-right text-slate-800">Create an account</a>{% endif %}
</div>
</div>
</div>
+5
View File
@@ -52,6 +52,11 @@
<button class="bg-slate-800 font-medium p-2 md:p-4 text-white uppercase w-full">Sign up</button>
</form>
<div class="mt-4">
<a href="{#{% url 'password_reset' TODO %}#}" class="text-slate-800">Forgot password?</a>
<a href="{% url 'login' %}" class="float-right text-slate-800">Log in instead</a>
</div>
</div>
</div>
+1 -1
View File
File diff suppressed because one or more lines are too long