[MM-22037] Enable uppercase letters in the email (#13794)
* Enable uppercase letters in the email * Lowercase email on every input * Remove invalid test
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
28ef877876
Коммит
a7854f1b97
@@ -309,6 +309,7 @@ func (a *App) importUser(data *UserImportData, dryRun bool) *model.AppError {
|
||||
hasUserChanged = true
|
||||
hasUserEmailVerifiedChanged = true // Changing the email resets email verified to false by default.
|
||||
user.Email = *data.Email
|
||||
user.Email = strings.ToLower(user.Email)
|
||||
}
|
||||
|
||||
var password string
|
||||
|
||||
Ссылка в новой задаче
Block a user