From eeff5a5d4329bc024d7b0ec796da04d8c66a8036 Mon Sep 17 00:00:00 2001 From: Ghighi Eftimie Date: Sat, 27 Jun 2020 12:00:08 +0300 Subject: [PATCH] fix for hidden input 'next' on login form --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index dacb951d..4d59e61c 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1434,7 +1434,7 @@ def login(): log.info('Login failed for user "%s" IP-adress: %s', form['username'], ipAdress) flash(_(u"Wrong Username or Password"), category="error") - next_url = url_for('web.index') + next_url = request.args.get('next', default=url_for("web.index"), type=str) return render_title_template('login.html', title=_(u"login"), next_url=next_url,