MM-65743: Sanitize in email verification endpoint (#33914) (#34121)

(cherry picked from commit 057efca74ee29862bca6ef6336bfbf3456f65bf6)

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Этот коммит содержится в:
Mattermost Build
2025-10-13 09:38:25 +03:00
коммит произвёл GitHub
родитель 967e44805b
Коммит 83a5be3f9e
2 изменённых файлов: 46 добавлений и 0 удалений

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

@@ -3127,6 +3127,7 @@ func verifyUserEmailWithoutToken(c *Context, w http.ResponseWriter, r *http.Requ
auditRec.Success()
c.LogAudit("user verified")
c.App.SanitizeProfile(user, true)
if err := json.NewEncoder(w).Encode(user); err != nil {
c.Logger.Warn("Error while writing response", mlog.Err(err))
}