Fixed doer missing
the build failed
Details
the build failed
Details
This commit is contained in:
parent
5fbc08cf65
commit
91e10eb78b
|
@ -61,7 +61,13 @@ func UserChangePassword(c echo.Context) error {
|
||||||
return c.JSON(http.StatusNotFound, models.Message{"User not found."})
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue