Files
Reklamator/app/templates/auth/login.html
T
gurixandClaude b8d0d6d16a Fix CSRF token missing in submission and login forms
Add CSRF token hidden input fields to:
- Submission form (submission/form.html)
- Login form (auth/login.html)

Also fix broken link in login page that referenced submission.form
without required product_slug parameter. Changed to link to index page.

Bug found during manual testing when submitting feedback resulted in
"Bad Request - The CSRF token is missing" error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 15:30:45 +02:00

28 lines
693 B
HTML

{% extends "base.html" %}
{% block title %}Login - Reklamator{% endblock %}
{% block content %}
<h1>Login</h1>
<form method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" required autofocus>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
</div>
<button type="submit">Login</button>
</form>
<p style="margin-top: 20px;">
<a href="{{ url_for('index') }}">Return to home page</a>
</p>
{% endblock %}