mirror of
https://github.com/wizarrrr/wizarr.git
synced 2026-07-31 07:17:10 -04:00
63 lines
3.1 KiB
HTML
63 lines
3.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}
|
|
Password Reset Error
|
|
{% endblock title %}
|
|
{% block main %}
|
|
<section class="bg-gray-50 dark:bg-gray-900">
|
|
<div class="flex flex-col items-center justify-center px-6 py-8 mx-auto h-screen lg:py-0">
|
|
<a href="#"
|
|
class="flex items-center mb-6 text-2xl font-semibold text-gray-900 dark:text-white">{{ _("Wizarr") }}</a>
|
|
<div class="w-full bg-white rounded-lg shadow-sm dark:border md:mt-0 sm:max-w-md xl:p-0 dark:bg-gray-800 dark:border-gray-700">
|
|
<div class="p-6 space-y-4 md:space-y-6 sm:p-8">
|
|
<!-- Error icon -->
|
|
<div class="flex justify-center">
|
|
<div class="flex items-center justify-center w-16 h-16 bg-red-100 rounded-full dark:bg-red-900">
|
|
<svg class="w-10 h-10 text-red-600 dark:text-red-400"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z">
|
|
</path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
<h1 class="text-xl font-bold leading-tight tracking-tight text-center text-gray-900 md:text-2xl dark:text-white">
|
|
{{ _("Password Reset Error") }}
|
|
</h1>
|
|
<div class="p-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400"
|
|
role="alert">
|
|
<span class="font-medium">{{ _("Error:") }}</span>
|
|
<p class="mt-2">
|
|
{% if error == "Invalid reset code" %}
|
|
{{ _("This password reset link is invalid.") }}
|
|
{% elif error == "Reset code has already been used" %}
|
|
{{ _("This password reset link has already been used.") }}
|
|
{% elif error == "Reset code has expired" %}
|
|
{{ _("This password reset link has expired.") }}
|
|
{% elif error == "Invalid code length" %}
|
|
{{ _("This password reset link is malformed.") }}
|
|
{% else %}
|
|
{{ error or _("This password reset link is no longer valid.") }}
|
|
{% endif %}
|
|
</p>
|
|
</div>
|
|
<div class="text-center text-sm text-gray-600 dark:text-gray-400">
|
|
<p>{{ _("Please contact your server administrator to request a new password reset link.") }}</p>
|
|
{% if code %}
|
|
<p class="mt-2 text-xs font-mono text-gray-500 dark:text-gray-500">{{ _("Code:") }} {{ code }}</p>
|
|
{% endif %}
|
|
</div>
|
|
<div class="mt-4 p-4 text-sm text-blue-800 rounded-lg bg-blue-50 dark:bg-gray-800 dark:text-blue-400">
|
|
<p class="font-medium">{{ _("Common reasons for this error:") }}</p>
|
|
<ul class="mt-2 list-disc list-inside">
|
|
<li>{{ _("The link has already been used") }}</li>
|
|
<li>{{ _("The link has expired (24 hour limit)") }}</li>
|
|
<li>{{ _("The link was not copied correctly") }}</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% endblock main %}
|