Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Only check 3pids not in use when registering #5187

Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented May 14, 2019

We checked that 3pids were not already in use before we checked if
we were going to return the account previously registered in the
same UI auth session, in which case the 3pids will definitely
be in use.

element-hq/element-web#9586

dbkr added 2 commits May 14, 2019 19:04
We checked that 3pids were not already in use before we checked if
we were going to return the account previously registered in the
same UI auth session, in which case the 3pids will definitely
be in use.

element-hq/element-web#9586
@dbkr dbkr requested a review from a team May 14, 2019 18:23
@codecov
Copy link

codecov bot commented May 14, 2019

Codecov Report

Merging #5187 into develop will decrease coverage by <.01%.
The diff coverage is 14.28%.

@@             Coverage Diff             @@
##           develop    #5187      +/-   ##
===========================================
- Coverage    62.15%   62.14%   -0.01%     
===========================================
  Files          336      336              
  Lines        34659    34663       +4     
  Branches      5694     5696       +2     
===========================================
+ Hits         21541    21542       +1     
- Misses       11583    11585       +2     
- Partials      1535     1536       +1

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally seems sane to me other than the changelog

@@ -0,0 +1 @@
Fix register endpoint returning a previously registered account.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you expand this a bit? It seems to say that the bug was that the endpoint incorrectly returned a previously registered account, but I don't think that is the case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I don't know why I thought that was a sensible wording.

@dbkr dbkr requested a review from richvdh May 15, 2019 19:54
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dbkr dbkr merged commit fafb936 into develop May 16, 2019
@DMRobertson DMRobertson deleted the dbkr/only_check_threepid_not_in_use_if_actually_registering branch June 28, 2022 11:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants