-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Restore user autoregistration with email addresses #19261
Restore user autoregistration with email addresses #19261
Conversation
Unfortunately go-gitea#18789 disabled autoregistration using email addresses as they would be shortcut to email address does not exist. This PR attempts to restore autoregistration by allowing an unknown email address to percolate through to the autoregistration path of UserSignin. Fix go-gitea#19256 Signed-off-by: Andrew Thornton <art27@cantab.net>
That's a lot of changes, I think if there is a chance, we should define the logic clearly and write some tests ..... |
…ated. Signed-off-by: Andrew Thornton <art27@cantab.net>
…l-autoregistration
Hide whitespace and you'll see the change it's not actually that much. But yes we do need some tests here. I think the fundamental issue is that we need to be able to mock up the authenticators but I think we can do that reasonably now. |
Codecov Report
@@ Coverage Diff @@
## main #19261 +/- ##
==========================================
+ Coverage 47.50% 47.52% +0.02%
==========================================
Files 931 931
Lines 130513 130520 +7
==========================================
+ Hits 61998 62033 +35
+ Misses 61043 61017 -26
+ Partials 7472 7470 -2
Continue to review full report at Codecov.
|
👋 🤖 |
Please send backport |
* giteaoffical/main: Fix broken of team create (go-gitea#19288) Remove `git.Command.Run` and `git.Command.RunInDir*` (go-gitea#19280) Performance improvement for add team user when org has more than 1000 repositories (go-gitea#19227) [skip ci] Updated translations via Crowdin Update JS dependencies (go-gitea#19281) Fix container download counter (go-gitea#19287) go.mod: update kevinburke/ssh_config to v1.2.0 (go-gitea#19286) Fix global packages enabled avaiable (go-gitea#19276) Add Goroutine stack inspector to admin/monitor (go-gitea#19207) Move checks for pulls before merge into own function (go-gitea#19271) Restore user autoregistration with email addresses (go-gitea#19261) Improve sync performance for pull-mirrors (go-gitea#19125) Refactor `git.Command.Run*`, introduce `RunWithContextString` and `RunWithContextBytes` (go-gitea#19266) Move reaction to models/issues/ (go-gitea#19264)
Backport go-gitea#19261 Unfortunately go-gitea#18789 disabled autoregistration using email addresses as they would be shortcut to email address does not exist. This PR attempts to restore autoregistration by allowing an unknown email address to percolate through to the autoregistration path of UserSignin. Fix go-gitea#19256 Signed-off-by: Andrew Thornton <art27@cantab.net>
Backport #19261 Unfortunately #18789 disabled autoregistration using email addresses as they would be shortcut to email address does not exist. This PR attempts to restore autoregistration by allowing an unknown email address to percolate through to the autoregistration path of UserSignin. Fix #19256 Signed-off-by: Andrew Thornton <art27@cantab.net>
Unfortunately #18789 disabled autoregistration using email addresses as they would
be shortcut to email address does not exist.
This PR attempts to restore autoregistration by allowing an unknown email address
to percolate through to the autoregistration path of UserSignin.
Fix #19256
Signed-off-by: Andrew Thornton art27@cantab.net