mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-15 19:01:04 -04:00
Change the CSRF error from 400 to 403
All 400s are handled by a generic errorhandler which logs them and converts them to 500. We don't need to be alerted for CSRF problems.
This commit is contained in:
@@ -151,7 +151,7 @@ def init_csrf(application):
|
||||
u'csrf.invalid_token: Aborting request, user_id: {user_id}',
|
||||
extra={'user_id': session['user_id']})
|
||||
|
||||
abort(400, reason)
|
||||
abort(403, reason)
|
||||
|
||||
|
||||
def init_app(application):
|
||||
|
||||
Reference in New Issue
Block a user