mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-03 17:05:39 +00:00
Fix login redirection when submounted
Fix #411 to use with APPLICATION_ROOT Flask config variable
This commit is contained in:
parent
004b211fdc
commit
d16abb9f81
@ -301,8 +301,8 @@ def saml_authorized():
|
|||||||
|
|
||||||
@login_manager.unauthorized_handler
|
@login_manager.unauthorized_handler
|
||||||
def unauthorized_callback():
|
def unauthorized_callback():
|
||||||
session['next'] = request.path
|
session['next'] = request.script_root + request.path
|
||||||
return redirect('/login')
|
return redirect(url_for('login'))
|
||||||
|
|
||||||
|
|
||||||
@app.route('/login', methods=['GET', 'POST'])
|
@app.route('/login', methods=['GET', 'POST'])
|
||||||
|
Loading…
Reference in New Issue
Block a user