1.8 KiB · text History 263b40b
{% extends "root.html" %}

{% block content %}
<div class="hero min-h-[70vh]">
    <div class="hero-content flex-col lg:flex-row-reverse">
        <div class="text-center lg:text-left">
            <h1 class="text-5xl font-bold">New password</h1>
            <p class="py-6">Choose a new password for your {{ app_name }} account. You'll be signed out everywhere, then you can log in with it.</p>
            {% if error %}
            <div class="alert alert-error" role="alert" data-reset-error>
                <i class="fas fa-circle-exclamation"></i>
                <span>{{ error }}</span>
            </div>
            {% endif %}
        </div>
        <div class="card shrink-0 w-full max-w-sm shadow-2xl bg-base-100">
            <form class="card-body" action="/password/reset" method="post" hx-boost="false">
                <input type="hidden" name="token" value="{{ token }}"/>
                <div class="form-control">
                    <label class="label"><span class="label-text">New password</span></label>
                    <input type="password" name="password" placeholder="At least {{ min_length }} characters" class="input input-bordered" required minlength="{{ min_length }}" autocomplete="new-password" autofocus/>
                </div>
                <div class="form-control">
                    <label class="label"><span class="label-text">Confirm password</span></label>
                    <input type="password" name="password_confirmation" placeholder="Confirm password" class="input input-bordered" required minlength="{{ min_length }}" autocomplete="new-password"/>
                </div>
                <div class="form-control mt-6">
                    <button class="btn btn-primary" type="submit"><i class="fas fa-key mr-2"></i> Set password</button>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}