loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[GITEA] add option for banning dots in usernames (squash) set in test

(cherry picked from commit b005b586c354119d2b6aaf6e4c18eb3f1ddfb615)
(cherry picked from commit 0077b2661e7e5be7b2e3772113abeb401f4085d5)
(cherry picked from commit c4589d1fce5eac383dd8530427140183a7aeff46)
(cherry picked from commit a7f9ff982c0c14e9484561e194d4fa7c5d80a76b)

+5
+5
models/user/user_test.go
··· 505 505 } 506 506 507 507 func Test_NormalizeUserFromEmail(t *testing.T) { 508 + oldSetting := setting.Service.AllowDotsInUsernames 509 + defer func() { 510 + setting.Service.AllowDotsInUsernames = oldSetting 511 + }() 512 + setting.Service.AllowDotsInUsernames = true 508 513 testCases := []struct { 509 514 Input string 510 515 Expected string