fix issues with login
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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=""
|
||||||
) }}
|
) }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user