-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Consume hcaptcha and pwn deps #22610
Conversation
Signed-off-by: jolheiser <john.olheiser@gmail.com>
// Checking for a "good" password isn't going to be perfect, but we can give it a good try | ||
// with hopefully minimal error. Try five times? | ||
var good bool | ||
var pw string | ||
for idx := 0; idx <= 5; idx++ { | ||
pw = testPassword() |
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.
This wasn't an ideal test then, and it isn't an ideal test now. Open to suggestions for this.
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signed-off-by: jolheiser <john.olheiser@gmail.com>
I think we should clarify which modules we should merge into Gitea and which we should depends on third-party on documentation. My idea is depending on third-party moudules ASAP if it's mature and well mantained. |
I briefly looked, but admittedly not very hard, as these are fairly simple APIs. That being said, these are largely equivalent to their module counterpart. I just wanted to increase bus factor, I'm not against swapping them in the future if we find a better library elsewhere. |
🎺 🤖 |
* upstream/main: Add support for commit cross references (go-gitea#22645) Fix missing message in git hook when pull requests disabled on fork (go-gitea#22625) Check quota limits for container uploads (go-gitea#22450) Consume hcaptcha and pwn deps (go-gitea#22610) Issues: add Project filter to issues list and search (go-gitea#22544) Improve accessibility of navigation bar and footer (go-gitea#22635) Support system hook API (go-gitea#14537) Improve checkIfPRContentChanged (go-gitea#22611)
This PR just consumes the hcaptcha and haveibeenpwned modules directly into Gitea.
Nothing else uses them, so I figured they would be better off in the main repo rather than sitting stale in another repo.
Bringing them into the main repo will help keep eyes on them and also notify us if any of the testing starts failing (as I noticed the hcaptcha testing has changed since I made the original module for secret keys).
Note that the modules were made to be libraries, so copying them here more than likely has some more code than is needed directly by Gitea.
I'm not opposed to trimming it down, but as a first pass I just wanted to get them in here.
Also let this serve as a notice that I'm fine with transferring my license (which was already MIT) from my own name to "The Gitea Authors".