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>
28 lines
693 B
HTML
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 %}
|