diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-10-11 11:34:40 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-10-11 11:34:40 +0100 |
commit | fa74fcf5120998e0bdb030638ce391914198f648 (patch) | |
tree | 438f1dd520902e40ebc1cb4c29db225033e0dd52 /synapse/api/urls.py | |
parent | Merge pull request #1160 from matrix-org/rav/401_on_password_fail (diff) | |
download | synapse-fa74fcf5120998e0bdb030638ce391914198f648.tar.xz |
Work around email-spamming Riot bug
5d9546f9 introduced a change to synapse behaviour, in that failures in the interactive-auth process would return the flows and params data as well as an error code (as specced in https://github.com/matrix-org/matrix-doc/pull/397). That change exposed a bug in Riot which would make it request a new validation token (and send a new email) each time it got a 401 with a `flows` parameter (see https://github.com/vector-im/vector-web/issues/2447 and the fix at https://github.com/matrix-org/matrix-react-sdk/pull/510). To preserve compatibility with broken versions of Riot, grandfather in the old behaviour for the email validation stage.
Diffstat (limited to 'synapse/api/urls.py')
0 files changed, 0 insertions, 0 deletions