diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-12-04 15:47:27 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-12-05 09:40:05 +0000 |
commit | d5f9fb06b064f2249071a5109b7cf9153b1e1f24 (patch) | |
tree | 7fe3c29ecf0f54d80e53116aa18411f6771cbc15 /synapse/api | |
parent | Merge pull request #2721 from matrix-org/rav/get_user_by_access_token_comments (diff) | |
download | synapse-d5f9fb06b064f2249071a5109b7cf9153b1e1f24.tar.xz |
Refactor UI auth implementation
Instead of returning False when auth is incomplete, throw an exception which can be caught with a wrapper.
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py |