app/user: ensure that user gets sanitized while calling plugin hooks (#19808)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-03-25 12:39:11 +03:00
коммит произвёл GitHub
родитель 3e8b81c0c7
Коммит 1c49366f00
2 изменённых файлов: 58 добавлений и 12 удалений

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

@@ -288,7 +288,7 @@ func (a *App) createUserOrGuest(c *request.Context, user *model.User, guest bool
a.Srv().Go(func() {
pluginContext := pluginContext(c)
pluginsEnvironment.RunMultiPluginHook(func(hooks plugin.Hooks) bool {
hooks.UserHasBeenCreated(pluginContext, user)
hooks.UserHasBeenCreated(pluginContext, ruser)
return true
}, plugin.UserHasBeenCreatedID)
})