Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Auth: servers should 401 when a request fails #397

Merged
merged 1 commit into from
Oct 5, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 5, 2016

(ref https://matrix.org/jira/browse/SYN-744)

Also remove the thing about weak passwords from m.login.password. If the user has set a weak password, it's not very helpful to reject their login because of it.

@dbkr dbkr merged commit fe61433 into master Oct 5, 2016
@richvdh richvdh deleted the rav/401_on_interactive_auth_fail branch October 6, 2016 17:29
richvdh added a commit to matrix-org/synapse that referenced this pull request Oct 11, 2016
5d9546f 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 matrix-org/matrix-spec-proposals#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 element-hq/element-web#2447 and the fix at
matrix-org/matrix-react-sdk#510).

To preserve compatibility with broken versions of Riot, grandfather in the old
behaviour for the email validation stage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants