Commit eeff5a5d authored by Ghighi Eftimie's avatar Ghighi Eftimie

fix for hidden input 'next' on login form

parent a0b8cc21
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment