fix issues with login

This commit is contained in:
2025-05-26 21:27:29 +02:00
parent 8e55893abb
commit c00fe16b94
2 changed files with 4 additions and 3 deletions

View File

@@ -26,6 +26,7 @@
{% endwith %} {% endwith %}
<form method="POST" action="{{ url_for('auth.register') }}"> <form method="POST" action="{{ url_for('auth.register') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<div class="mb-3"> <div class="mb-3">
<label for="username" class="form-label">Username</label> <label for="username" class="form-label">Username</label>
<input type="text" class="form-control" id="username" name="username" required> <input type="text" class="form-control" id="username" name="username" required>

View File

@@ -12,10 +12,10 @@
{{ header( {{ header(
title="Trash", title="Trash",
description="View and manage deleted files. Files in trash will be permanently deleted after 30 days.", description="View and manage deleted files. Files in trash will be permanently deleted after 30 days.",
button_text="Empty Trash", button_text="Empty Trash" if current_user.is_admin else "",
button_url="#", button_url="#" if current_user.is_admin else "",
icon="fa-trash", icon="fa-trash",
button_class="btn-danger", button_class="btn-danger" if current_user.is_admin else "",
button_icon="" button_icon=""
) }} ) }}