This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Prevent M_USER_IN_USE from being raised by registration methods until after email has been verified #48
Merged
Merged
Prevent M_USER_IN_USE from being raised by registration methods until after email has been verified #48
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
458f3b2
Prevent /register/available from raising M_USER_IN_USE
anoadragon453 fa88122
Prevent /register from raising M_USER_IN_USE until email validated
anoadragon453 e830db0
Changelog
anoadragon453 f1167aa
Make /register/available always return True
anoadragon453 20bfe49
Ignore usernames
anoadragon453 d15f303
No need for user_in_use_exception option anymore
anoadragon453 725f0b2
Update changelog
anoadragon453 b592b76
Remove check_username comment
anoadragon453 919381f
grammar
anoadragon453 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Prevent `/register` from raising `M_USER_IN_USE` until UI Auth has been completed. Have `/register/available` always return true. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,14 +90,6 @@ def test_POST_bad_password(self): | |
| self.assertEquals(channel.result["code"], b"400", channel.result) | ||
| self.assertEquals(channel.json_body["error"], "Invalid password") | ||
|
|
||
| def test_POST_bad_username(self): | ||
| request_data = json.dumps({"username": 777, "password": "monkey"}) | ||
| request, channel = self.make_request(b"POST", self.url, request_data) | ||
| self.render(request) | ||
|
|
||
| self.assertEquals(channel.result["code"], b"400", channel.result) | ||
| self.assertEquals(channel.json_body["error"], "Invalid username") | ||
|
|
||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test is no longer relevant. |
||
| def test_POST_user_valid(self): | ||
| user_id = "@kermit:test" | ||
| device_id = "frogfone" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you remove the
ratelimitercheck here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that this endpoint just always returns
{"available": True}I don't think there's much point in ratelimiting it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, I agree
I forgot it was change about
/register/availableThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, hard to notice in the diff :)