This commit is contained in:
Mateusz779 2023-04-13 12:32:13 +02:00
parent 8322535ffc
commit 6f4f048ce7

2
app.py
View File

@ -43,7 +43,7 @@ def login_api():
if auth_token is None: if auth_token is None:
return render_template('login.html', incorrect="Incorrect username or password!") return render_template('login.html', incorrect="Incorrect username or password!")
response = make_response(render_template('index.html')) response = make_response(redirect('/'))
response.set_cookie('auth_token', auth_token) response.set_cookie('auth_token', auth_token)
return response return response