(error)
| 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() |
nothing calls this directly
no test coverage detected