Email check shouldn't be case-sensitive #3349 (#3350)

Email address "allowed domains" check appears to be case-sensitive #3349
This commit is contained in:
Thiyagaraj Krishna
2016-06-27 08:08:16 -04:00
committed by Christopher Speller
parent 0267d520dd
commit 11afa405ba

View File

@@ -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
}