Open gjovanovicl opened 6 years ago
Hi,
I´ve tested using "usage_dash_flask_login.py" and the application can´t redirect after a succesful login.
request.args.get('next') never gets "app1"
@server.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST':
if request.args.get('next'): return redirect(request.args.get('next')) else:
return redirect('/login') else: return redirect('/login')
The only way I can log to app1 is adding the commented line but it works only in Firefox and Edge not in Chrome.
I would appreciate your help.
Hi,
I´ve tested using "usage_dash_flask_login.py" and the application can´t redirect after a succesful login.
request.args.get('next') never gets "app1"
@server.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST':
return redirect('http://localhost:8049/app1', code=302)
The only way I can log to app1 is adding the commented line but it works only in Firefox and Edge not in Chrome.
I would appreciate your help.