use non-deprecated func

This commit is contained in:
Henning Jacobs
2016-12-20 14:10:01 +01:00
parent d8a4c4eedf
commit cab2b20464

4
app.py
View File

@@ -166,8 +166,8 @@ def logout():
@app.route('/login/authorized')
@auth.authorized_handler
def authorized(resp):
def authorized():
resp = auth.authorized_response()
if resp is None:
return 'Access denied: reason=%s error=%s' % (
flask.request.args['error'],