diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-06 08:09:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-06 08:09:55 -0400 |
commit | 66f24449dd614b23ea4c572d8d613efeb129e4a2 (patch) | |
tree | 73b60577aeee4054d5578e79af1cf13873355644 /synapse/api | |
parent | Fixup worker doc (again) (#8000) (diff) | |
download | synapse-66f24449dd614b23ea4c572d8d613efeb129e4a2.tar.xz |
Improve performance of the register endpoint (#8009)
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/errors.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/errors.py b/synapse/api/errors.py index b3bab1aa52..6e40630ab6 100644 --- a/synapse/api/errors.py +++ b/synapse/api/errors.py @@ -238,14 +238,16 @@ class InteractiveAuthIncompleteError(Exception): (This indicates we should return a 401 with 'result' as the body) Attributes: + session_id: The ID of the ongoing interactive auth session. result: the server response to the request, which should be passed back to the client """ - def __init__(self, result: "JsonDict"): + def __init__(self, session_id: str, result: "JsonDict"): super(InteractiveAuthIncompleteError, self).__init__( "Interactive auth not yet complete" ) + self.session_id = session_id self.result = result |