bug: Don't redirect the user to / after failed login
This commit is contained in:
parent
8f93561c0a
commit
535b52d9b1
|
|
@ -89,6 +89,7 @@ def login():
|
||||||
return redirect('/')
|
return redirect('/')
|
||||||
else:
|
else:
|
||||||
form.password.errors.append('Invalid username or password.')
|
form.password.errors.append('Invalid username or password.')
|
||||||
|
return render_template('auth/login.html', form=form)
|
||||||
|
|
||||||
return redirect('/')
|
return redirect('/')
|
||||||
return render_template('auth/login.html', form=form)
|
return render_template('auth/login.html', form=form)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue