forked from rDrama/rDrama
1
0
Fork 0

remove wrong response code that results in console error

master
Aevann 2023-07-23 03:34:37 +03:00
parent beff4881aa
commit 4dfaced994
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def login_get(v:Optional[User]):
if redir and is_site_url(redir) and redir not in NO_LOGIN_REDIRECT_URLS:
return redirect(redir)
return redirect('/')
return render_template("login/login.html", failed=False, redirect=redir), 401
return render_template("login/login.html", failed=False, redirect=redir)
@app.post("/login")
@limiter.limit('1/second', scope=rpath)