diff --git a/changelog.d/296.bugfix b/changelog.d/296.bugfix new file mode 100644 index 00000000..b3d28e21 --- /dev/null +++ b/changelog.d/296.bugfix @@ -0,0 +1 @@ +Fix a bug in the error handling of 3PID session validation, if the token submitted is incorrect. diff --git a/sydent/validators/common.py b/sydent/validators/common.py index 79169d3d..aad23474 100644 --- a/sydent/validators/common.py +++ b/sydent/validators/common.py @@ -64,4 +64,4 @@ def validateSessionWithToken(sydent, sid, clientSecret, token): return {'success': True} else: logger.info("Incorrect token submitted") - return IncorrectSessionTokenException() + raise IncorrectSessionTokenException()