MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / handle_csrf_error

Function handle_csrf_error

web/pgadmin/__init__.py:972–975  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

970 # Send unauthorized response if CSRF errors occurs.
971 @app.errorhandler(CSRFError)
972 def handle_csrf_error(error):
973 err_msg = str(error.description) + \
974 gettext(' You need to refresh the page.')
975 return unauthorized(errormsg=err_msg)
976
977 # Initialize the key manager
978 app.keyManager = KeyManager()

Callers

nothing calls this directly

Calls 2

unauthorizedFunction · 0.90
gettextFunction · 0.85

Tested by

no test coverage detected