bug: Don't redirect the user to / after failed login

This commit is contained in:
Wojciech Kwolek 2020-08-29 20:16:31 +02:00
parent 8f93561c0a
commit 535b52d9b1
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ def login():
return redirect('/')
else:
form.password.errors.append('Invalid username or password.')
return render_template('auth/login.html', form=form)
return redirect('/')
return render_template('auth/login.html', form=form)