MM-58847 Sanitize User (#27471)
* add more fields to sanitizeInput on User * add test for user sanoitizeInput * add more fields * remove line, lint fix * additional fields and sanitize update * Update user_test.go * remove fields that are unnecessary to check * add check to test --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e917709be5
Коммит
ea6490a5eb
@@ -142,6 +142,10 @@
|
||||
type: string
|
||||
nickname:
|
||||
type: string
|
||||
position:
|
||||
type: string
|
||||
timezone:
|
||||
$ref: "#/components/schemas/Timezone"
|
||||
auth_data:
|
||||
description: Service-specific authentication data, such as email address.
|
||||
type: string
|
||||
@@ -911,6 +915,8 @@
|
||||
type: string
|
||||
position:
|
||||
type: string
|
||||
timezone:
|
||||
$ref: "#/components/schemas/Timezone"
|
||||
props:
|
||||
type: object
|
||||
notify_props:
|
||||
|
||||
Ссылка в новой задаче
Block a user