DevPlace CI / test (push) Failing after 2m7s
- Add `/block`, `/mute` endpoints with block/unblock and mute/unmute functionality in `routers/relations.py`, hiding blocked users' content everywhere except their own profile while muting only suppresses notifications - Introduce `devplace emoji-sync` CLI command to regenerate `static/js/emoji-shortcodes.js` from the emoji library, documented in `CLAUDE.md` and wired in `cli.py` - Create `get_blocked_uids()` database helper and apply it in `content.py` `load_detail()` to filter blocked users' posts from detail views - Implement `_uid_index()` and `_drop_index()` helpers in `database.py` for unique uid indexes across tables, with `user_relations` added to `SOFT_DELETE_TABLES` - Document new routes in `AGENTS.md` and `README.md`, including emoji shortcodes rendering behavior distinct from the emoji picker
42 lines
1.8 KiB
HTML
42 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% block extra_head %}
|
|
<link rel="stylesheet" href="{{ static_url('/static/css/auth.css') }}">
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="auth-page">
|
|
<div class="auth-card">
|
|
<a href="/auth/login" class="auth-back">← 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" role="alert">
|
|
<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 aria-required="true" maxlength="128" placeholder="At least 6 characters">
|
|
<button type="button" class="auth-toggle-pw" aria-label="Show password" aria-pressed="false">👁</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 aria-required="true" maxlength="128" placeholder="Repeat your password">
|
|
<button type="button" class="auth-toggle-pw" aria-label="Show password" aria-pressed="false">👁</button>
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="auth-submit"><span class="icon">🔒</span> Reset Password</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|