Adds RemoteId to the fields to clean when coming from the API (#27047)

* Cleans the RemoteId when creating a user through the API

* Replace bad usage of the API with an App call in tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Miguel de la Cruz
2024-05-22 11:20:02 +02:00
коммит произвёл GitHub
родитель 441f5657c8
Коммит a4afae5b3b
2 изменённых файлов: 30 добавлений и 1 удалений

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

@@ -657,6 +657,7 @@ func (u *User) SanitizeInput(isAdmin bool) {
u.AuthService = ""
u.EmailVerified = false
}
u.RemoteId = NewString("")
u.DeleteAt = 0
u.LastPasswordUpdate = 0
u.LastPictureUpdate = 0