Revised the log in process of the test site to return to the previous page after logging in.

This commit is contained in:
imacat committed 2023-04-11 22:27:11 +08:00
1 parent 12ccf658bf
commit fadd8e73b6
4 files changed
+15 -6

No files matched your search

+3
View File
@@ -27,6 +27,9 @@ First written: 2023/1/27
<form action="{{ url_for("auth.login") }}" method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
{% if request.args.next %}
<input type="hidden" name="next" value="{{ request.args.next }}">
{% endif %}
<button class="btn btn-primary" type="submit" name="username" value="viewer">{{ _("Viewer") }}</button>
<button class="btn btn-primary" type="submit" name="username" value="editor">{{ _("Editor") }}</button>
<button class="btn btn-primary" type="submit" name="username" value="admin">{{ _("Administrator") }}</button>