Added the editor2 user to the test site.

This commit is contained in:
2023-02-06 23:28:21 +08:00
parent 52351c52bc
commit 7873e16cc3
4 changed files with 12 additions and 6 deletions

View File

@@ -58,7 +58,8 @@ def login() -> redirect:
:return: The redirection to the home page.
"""
if request.form.get("username") not in ["viewer", "editor", "nobody"]:
if request.form.get("username") not in ["viewer", "editor", "editor2",
"nobody"]:
return redirect(url_for("auth.login"))
session["user"] = request.form.get("username")
return redirect(url_for("home.home"))