[MM-14313] Use LogAudit for Active/Deactive Action (#10357)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
476a66099f
Коммит
a3ee3ac193
@@ -877,7 +877,7 @@ func updateUserActive(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
c.Err = err
|
c.Err = err
|
||||||
}
|
}
|
||||||
|
|
||||||
c.LogAuditWithUserId(user.Id, fmt.Sprintf("active=%v", active))
|
c.LogAudit(fmt.Sprintf("user_id=%s active=%v", user.Id, active))
|
||||||
if isSelfDeactive {
|
if isSelfDeactive {
|
||||||
c.App.Srv.Go(func() {
|
c.App.Srv.Go(func() {
|
||||||
if err = c.App.SendDeactivateAccountEmail(user.Email, user.Locale, c.App.GetSiteURL()); err != nil {
|
if err = c.App.SendDeactivateAccountEmail(user.Email, user.Locale, c.App.GetSiteURL()); err != nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user