mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-25 02:57:22 +00:00
fix for hidden input 'next' on login form
This commit is contained in:
parent
a0b8cc21cc
commit
eeff5a5d43
@ -1434,7 +1434,7 @@ def login():
|
|||||||
log.info('Login failed for user "%s" IP-adress: %s', form['username'], ipAdress)
|
log.info('Login failed for user "%s" IP-adress: %s', form['username'], ipAdress)
|
||||||
flash(_(u"Wrong Username or Password"), category="error")
|
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',
|
return render_title_template('login.html',
|
||||||
title=_(u"login"),
|
title=_(u"login"),
|
||||||
next_url=next_url,
|
next_url=next_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user