diff options
author | Thiyagaraj Krishna <thiyagaraj@gmail.com> | 2016-06-27 08:08:16 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-06-27 08:08:16 -0400 |
commit | 11afa405ba4ee6a9d1f17fb99db19ddfed1c385c (patch) | |
tree | 4cf0fad63199434837d119114555f5082c2ff465 /api/user.go | |
parent | 0267d520dd6227bff5ed5e9a39e4162cc63d92c3 (diff) | |
download | chat-11afa405ba4ee6a9d1f17fb99db19ddfed1c385c.tar.gz chat-11afa405ba4ee6a9d1f17fb99db19ddfed1c385c.tar.bz2 chat-11afa405ba4ee6a9d1f17fb99db19ddfed1c385c.zip |
Email check shouldn't be case-sensitive #3349 (#3350)
Email address "allowed domains" check appears to be case-sensitive #3349
Diffstat (limited to 'api/user.go')
-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 } |