1
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-10-02 13:29:10 +00:00
This commit is contained in:
patdyn 2024-10-01 10:28:46 +02:00
parent 92a1202e07
commit 8f131f37e8
2 changed files with 3 additions and 4 deletions

View file

@ -20,8 +20,8 @@ import (
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/modules/validation"
"github.com/gobwas/glob"
"github.com/gobwas/glob"
"xorm.io/builder"
)
@ -509,8 +509,8 @@ func IsEmailDomainAllowedInternal(
emailDomainAllowList []glob.Glob,
emailDomainBlockList []glob.Glob,
isFederation bool,
fqdn string) bool {
fqdn string,
) bool {
result := false
if len(emailDomainAllowList) == 0 {

View file

@ -23,7 +23,6 @@ func TestEmailDomainAllowList(t *testing.T) {
}
func TestEmailDomainAllowListInternal(t *testing.T) {
domain, _ := glob.Compile("domain.de", ',')
emailDomainAllowList := []glob.Glob{domain}
emailDomainBlockList := []glob.Glob{}