31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
<!-- templates/forgot_password.html -->
|
|
{% extends "base.html" %}
|
|
{% block title %}Passwort vergessen{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container mx-auto p-4 sm:p-6 lg:p-8 flex flex-col items-center">
|
|
<div class="glassmorphism p-6 rounded shadow-lg w-full max-w-md">
|
|
<h1 class="text-2xl font-bold mb-4">Passwort vergessen</h1>
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="bg-{{category}}-500 text-white p-2 rounded mb-2">
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<form method="POST" action="{{ url_for('forgot_password') }}">
|
|
<label for="username" class="block mb-2">Benutzername oder E-Mail</label>
|
|
<input type="text" name="username_or_email" id="username" class="w-full p-2 border rounded text-gray-800 mb-4" required>
|
|
|
|
<button type="submit" class="bg-green-500 text-white px-4 py-2 rounded w-full hover:bg-green-600">
|
|
Anfordern
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|