This commit is contained in:
Mateusz779 2023-04-13 11:59:55 +02:00
parent bd5ede08fb
commit 1908833642

2
app.py
View File

@ -28,7 +28,7 @@ def login_post():
username = request.form['username']
password = request.form['password']
auth_token = db.login()
auth_token = db.login(username, password)
if auth_token is None:
flash('Nieprawidłowa nazwa użytkownika lub hasło.', 'error')
return redirect(url_for('/'))