zulip/zerver
Greg Price 192ec7c0f6 middleware: Use a proper error code on CSRF failure.
This allows us to reliably parse the error in code, rather than
attempt to parse the error text.  Because the error text gets
translated into the user's language, this error-handling path
wasn't functioning at all for users using Zulip in any of the
seven non-English languages for which we had a translation for
this string.

Together with 709c3b50f which fixed a similar issue in a
different error-handling path, this fixes #5598.
2017-07-25 14:02:12 -07:00
..
fixtures markdown.js: Move markdown.js test to bugdown-data.json. 2017-07-18 12:56:47 -07:00
lib middleware: Use a proper error code on CSRF failure. 2017-07-25 14:02:12 -07:00
management tornado: Move setup_tornado_rabbitmq to application.py 2017-07-21 09:55:25 +05:00
migrations models: Fix the URL validation code in `RealmFilter` model. 2017-07-24 17:31:08 -07:00
templatetags tidying: Combine multiple 'import typing' lines onto one line. 2017-07-16 16:43:21 -07:00
tests bugdown: Fix the rendering of emojis in twitter link previews. 2017-07-24 17:32:05 -07:00
tornado tornado: Use a machine-readable error code when an event queue is gone. 2017-07-24 16:41:22 -07:00
views JsonableError: Optionally carry error codes and structured data. 2017-07-24 16:41:22 -07:00
webhooks webhooks/updown: Fix a JsonableError to provide a real error message. 2017-07-24 16:41:22 -07:00
worker embedded bots: Add tests for verification of embedded bot services. 2017-07-24 17:14:14 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py Add notifications on new logins to Zulip. 2017-03-25 16:50:52 -07:00
context_processors.py settings: Change all uses of ZULIP_ADMINISTRATOR to FromAddress.SUPPORT. 2017-07-05 15:33:01 -07:00
decorator.py exceptions: Move zerver/exceptions.py under zerver/lib/. 2017-07-24 16:41:22 -07:00
filters.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
forms.py JsonableError: Rename message from `error` to `msg`. 2017-07-24 16:41:22 -07:00
logging_handlers.py logging_handlers: Fix tracebacks being emailed in subject lines. 2017-04-25 18:55:11 -07:00
middleware.py middleware: Use a proper error code on CSRF failure. 2017-07-25 14:02:12 -07:00
models.py models: Fix the URL validation code in `RealmFilter` model. 2017-07-24 17:31:08 -07:00
signals.py emails: Add to_user_id argument to send_email. 2017-07-16 16:56:39 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py pep8: Add compliance with rule E261 to storage.py. 2017-05-07 23:21:50 -07:00