mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-02 13:29:10 +00:00
Format
This commit is contained in:
parent
92a1202e07
commit
8f131f37e8
2 changed files with 3 additions and 4 deletions
|
@ -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 {
|
||||
|
|
|
@ -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{}
|
||||
|
|
Loading…
Reference in a new issue