app/user: ensure that user gets sanitized while calling plugin hooks (#19808)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3e8b81c0c7
Коммит
1c49366f00
@@ -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)
|
||||
})
|
||||
|
||||
Ссылка в новой задаче
Block a user