fix issues with login
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
{% endwith %}
|
||||
|
||||
<form method="POST" action="{{ url_for('auth.register') }}">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<div class="mb-3">
|
||||
<label for="username" class="form-label">Username</label>
|
||||
<input type="text" class="form-control" id="username" name="username" required>
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
{{ header(
|
||||
title="Trash",
|
||||
description="View and manage deleted files. Files in trash will be permanently deleted after 30 days.",
|
||||
button_text="Empty Trash",
|
||||
button_url="#",
|
||||
button_text="Empty Trash" if current_user.is_admin else "",
|
||||
button_url="#" if current_user.is_admin else "",
|
||||
icon="fa-trash",
|
||||
button_class="btn-danger",
|
||||
button_class="btn-danger" if current_user.is_admin else "",
|
||||
button_icon=""
|
||||
) }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user