zulip/templates
m-e-l-u-h-a-n 2eeb82edba api: Add USER_DEACTIVATED error code.
In validate_account_and_subdomain we check if
user's account is not deactivated. In case of
failure of this check we raise our standard
JsonableError. While this works well in most
cases but it creates difficulties in handling
of deactivated accounts for non-browser clients.

So we register a new USER_DEACTIVATED error
code so that clients can distinguish if error
is because of deactivated account. Following
these changes `validate_account_and_subdomain`
raises UserDeactivatedError if user's account
is deactivated.

This error is also documented in
`/api/rest-error-handling`.

Testing: I have mostly relied on automated
backend tests to test this.

Partially addresses issue #17763.
2021-03-31 08:46:13 -07:00
..
analytics support: Show the actual user email in /support. 2021-03-22 18:10:03 -07:00
confirmation confirmation: Adjust language for link_expired template. 2021-02-16 07:42:13 -08:00
corporate docs: Fix more capitalization issues. 2020-10-23 11:46:55 -07:00
tests webhooks/freshdesk/doc.md: Remove unescape_rendered_html kludge. 2019-07-03 15:05:45 -07:00
two_factor docs: Correct “login” as a verb to “log in”. 2020-08-11 10:25:53 -07:00
zerver api: Add USER_DEACTIVATED error code. 2021-03-31 08:46:13 -07:00
zilencer billing: Move billing related templates from zilencer to corporate. 2018-10-01 15:43:39 -07:00
.gitignore
404.html templates: Remove strangely toned text from 404 page. 2020-08-31 16:47:20 -07:00
500.html Make 4xx and 5xx pages full screen. 2017-08-08 11:58:22 -07:00