diff --git a/routes/api/v1/user_update_password.go b/routes/api/v1/user_update_password.go index 26a48f8..d76365a 100644 --- a/routes/api/v1/user_update_password.go +++ b/routes/api/v1/user_update_password.go @@ -61,7 +61,13 @@ func UserChangePassword(c echo.Context) error { return c.JSON(http.StatusNotFound, models.Message{"User not found."}) } - err = models.UpdateUserPassword(userID, datPw.Password) + // Get the doer options + doer, err := models.GetCurrentUser(c) + if err != nil { + return err + } + + err = models.UpdateUserPassword(userID, datPw.Password, &doer) if err != nil { return err