Files
devplacepy/devplacepy/templates/reset_password.html
T
retoor aa88f18c03 chore: add docker infrastructure, gists feature, attachment system, and admin CLI tools
- Add .dockerignore, Dockerfile, and docker compose targets to Makefile for containerized deployment
- Implement gists router with CRUD operations, database schema, and polymorphic comment/vote reuse
- Create attachment upload system with thumbnail generation, MIME detection, and storage path management
- Add attachments_prune CLI command to clean orphaned attachment records and files
- Introduce rate limiting middleware with 60 requests per minute window
- Add custom 404 and 500 error handlers with SEO-optimized template responses
- Extend database initialization with gists and attachments indexes plus upload site settings defaults
- Update load_comments to include attachment mapping for comment resources
- Register gists and uploads routers in main application and update AGENTS.md documentation
2026-05-12 13:07:34 +00:00

42 lines
1.7 KiB
HTML

{% extends "base.html" %}
{% block extra_head %}
<link rel="stylesheet" href="/static/css/auth.css">
{% endblock %}
{% block content %}
<div class="auth-page">
<div class="auth-card">
<a href="/auth/login" class="auth-back">&larr; Back to Login</a>
<h2>Set New Password</h2>
<p class="subtitle">Choose a new password for your account</p>
{% if errors %}
<div class="auth-error">
<ul>
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
<form class="auth-form" method="POST" action="/auth/reset-password/{{ token }}">
<div class="auth-field">
<label for="password">New Password</label>
<div class="input-wrap">
<input type="password" id="password" name="password" required maxlength="128" placeholder="At least 6 characters">
<button type="button" class="auth-toggle-pw" aria-label="Toggle password visibility">&#x1F441;</button>
</div>
</div>
<div class="auth-field">
<label for="confirm_password">Confirm Password</label>
<div class="input-wrap">
<input type="password" id="confirm_password" name="confirm_password" required maxlength="128" placeholder="Repeat your password">
<button type="button" class="auth-toggle-pw" aria-label="Toggle password visibility">&#x1F441;</button>
</div>
</div>
<button type="submit" class="auth-submit"><span class="icon">&#x1F512;</span>Reset Password</button>
</form>
</div>
</div>
{% endblock %}