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.
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
Use Privacy Access Tokens, CAPTCHA, and Rack to rate limit sign ins and sign ups #3519
base: master
Are you sure you want to change the base?
Use Privacy Access Tokens, CAPTCHA, and Rack to rate limit sign ins and sign ups #3519
Changes from all commits
c336047
5962b58
96ed264
c101b7b
e520d8a
46c123c
540dab4
d3f30be
228927d
cdd917d
e9ae239
a2be52e
bcc1f71
aeffdae
61d19a8
1bb46a7
c4aa940
cf2146a
39f5277
7c2cadc
f215648
9abaaef
20cecb9
54eb409
494769e
508b0b2
6dd4474
3cc8e6d
7208230
72bc324
71880ce
1b89db2
da8d566
007936d
8b7384f
d7c709b
cffedcc
50a120f
a984568
2619a61
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Per my local testing, captcha is also created when trying to login with unknown email, that means
@user
is nil in here and it crashes.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.
The same seems applied when using wrong password for existing account.
find_user
returns nil ->@user
is nil.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.
If I understand it well, this is tricky to test.
valid?
is called few lines before, but thissave
can still fail. In theory codecov could be fixed by usingsave!
andrescue_from
, but I'm not sure if that's worth it. 🤔