app/testEmail: remove a setting that blocks testEmail (#15022)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2020-08-15 00:43:42 +03:00
коммит произвёл GitHub
родитель 16ffb6712f
Коммит 1fadfa9f33
2 изменённых файлов: 23 добавлений и 13 удалений

Просмотреть файл

@@ -201,10 +201,6 @@ func (a *App) TestEmail(userId string, cfg *model.Config) *model.AppError {
return model.NewAppError("testEmail", "api.admin.test_email.missing_server", nil, utils.T("api.context.invalid_param.app_error", map[string]interface{}{"Name": "SMTPServer"}), http.StatusBadRequest)
}
if !*cfg.EmailSettings.SendEmailNotifications {
return nil
}
// if the user hasn't changed their email settings, fill in the actual SMTP password so that
// the user can verify an existing SMTP connection
if *cfg.EmailSettings.SMTPPassword == model.FAKE_SETTING {