diff options
-rw-r--r-- | api/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index b9ae23ac5..11794a7c4 100644 --- a/api/user.go +++ b/api/user.go @@ -190,7 +190,7 @@ func CheckUserDomain(user *model.User, domains string) bool { matched := false for _, d := range domainArray { - if strings.HasSuffix(user.Email, "@"+d) { + if strings.HasSuffix(strings.ToLower(user.Email), "@"+d) { matched = true break } |