summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-05 17:58:06 -0700
committerKegan Dougal <kegan@matrix.org>2014-09-05 17:58:06 -0700
commit0b9e1e7b562c3b278873060ca3c4109bc2e451e8 (patch)
tree9b20a68e0ecb72acbfd963ad2510eec3387ac3c6 /synapse/api
parentAdded webclient config.js for storing recaptcha public key. (diff)
downloadsynapse-0b9e1e7b562c3b278873060ca3c4109bc2e451e8.tar.xz
Added a captcha config to the HS, to enable registration captcha checking and for the recaptcha private key.
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/errors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py
index 84afe4fa37..8e9dd2aba6 100644
--- a/synapse/api/errors.py
+++ b/synapse/api/errors.py
@@ -29,6 +29,7 @@ class Codes(object):
     NOT_FOUND = "M_NOT_FOUND"
     UNKNOWN_TOKEN = "M_UNKNOWN_TOKEN"
     LIMIT_EXCEEDED = "M_LIMIT_EXCEEDED"
+    NEEDS_CAPTCHA = "M_NEEDS_CAPTCHA"
 
 
 class CodeMessageException(Exception):