mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-20 12:20:47 +08:00
Fix failing test
This commit is contained in:
@@ -154,7 +154,7 @@ def auth_required(*auth_methods):
|
||||
if _security._unauthorized_callback:
|
||||
return _security._unauthorized_callback()
|
||||
else:
|
||||
return _get_unauthorized_response()
|
||||
return _get_unauthorized_response(headers=h)
|
||||
return decorated_view
|
||||
return wrapper
|
||||
|
||||
|
||||
Reference in New Issue
Block a user