fixed an error in the unauthorized/accessdenied handler
This commit is contained in:
parent
1c0517fc4b
commit
aa795319c5
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def callback():
|
||||||
|
|
||||||
@app.errorhandler(Unauthorized)
|
@app.errorhandler(Unauthorized)
|
||||||
@app.errorhandler(AccessDenied)
|
@app.errorhandler(AccessDenied)
|
||||||
def redirect_unauthorized():
|
def redirect_unauthorized(e): # pylint: disable=unused-argument
|
||||||
return redirect(url_for(".index"))
|
return redirect(url_for(".index"))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue