Add password reset flow, attendee profile enhancements, and spec
- Add forgot_password and reset_password templates and routes - Enhance profile.html with photo crop/zoom functionality - Add attendee type management to edit_attendee.html - Update templates styling and layout consistency - Document database schema in SPEC.md - Add CLAUDE.md project guidance Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ 'forgot_password'|t }} - NetEvents{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="auth-container">
|
||||
<div class="auth-box">
|
||||
<h2>{{ 'forgot_password'|t }}</h2>
|
||||
<p class="auth-subtitle">{{ 'forgot_password_desc'|t }}</p>
|
||||
|
||||
<form method="POST" action="{{ url_for('forgot_password') }}">
|
||||
<div class="form-group">
|
||||
<label for="email">{{ 'email'|t }}</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary btn-block">{{ 'send_reset_link'|t }}</button>
|
||||
</form>
|
||||
|
||||
<p class="auth-footer">
|
||||
{{ 'remember_password'|t }}
|
||||
<a href="{{ url_for('login') }}">{{ 'login'|t }}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -28,6 +28,10 @@
|
||||
<a href="{{ url_for('register_organizer') }}">{{ 'register_as_organizer'|t }}</a>
|
||||
</p>
|
||||
|
||||
<p class="forgot-password-link">
|
||||
<a href="{{ url_for('forgot_password') }}">{{ 'forgot_password'|t }}</a>
|
||||
</p>
|
||||
|
||||
<div class="attendee-link-box">
|
||||
<p>{{ 'attendee_profile_link'|t }}</p>
|
||||
<p><a href="{{ url_for('request_attendee_link') }}"><strong>{{ 'click_here'|t }}</strong></a></p>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ 'reset_password'|t }} - NetEvents{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="auth-container">
|
||||
<div class="auth-box">
|
||||
<h2>{{ 'set_new_password'|t }}</h2>
|
||||
|
||||
<form method="POST" action="{{ url_for('reset_password', token=token) }}">
|
||||
<div class="form-group">
|
||||
<label for="password">{{ 'new_password'|t }}</label>
|
||||
<input type="password" id="password" name="password" required minlength="6">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="confirm_password">{{ 'confirm_password'|t }}</label>
|
||||
<input type="password" id="confirm_password" name="confirm_password" required minlength="6">
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary btn-block">{{ 'reset_password'|t }}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user