From 11afa405ba4ee6a9d1f17fb99db19ddfed1c385c Mon Sep 17 00:00:00 2001 From: Thiyagaraj Krishna Date: Mon, 27 Jun 2016 08:08:16 -0400 Subject: [PATCH] Email check shouldn't be case-sensitive #3349 (#3350) Email address "allowed domains" check appears to be case-sensitive #3349 --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/user.go b/api/user.go index b9ae23ac50..11794a7c41 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 }