Fixed doer missing
the build failed Details

This commit is contained in:
konrad 2018-03-06 14:01:46 +01:00 committed by kolaente
parent 5fbc08cf65
commit 91e10eb78b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 1 deletions

View File

@ -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