mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Email address "allowed domains" check appears to be case-sensitive #3349
This commit is contained in:
committed by
Christopher Speller
parent
0267d520dd
commit
11afa405ba
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user