diff --git a/routes/api/v1/user_update_password.go b/routes/api/v1/user_update_password.go index 3c619c902..c93e2ea03 100644 --- a/routes/api/v1/user_update_password.go +++ b/routes/api/v1/user_update_password.go @@ -49,7 +49,7 @@ func UserChangePassword(c echo.Context) error { } // Check the current password - if _, err = models.CheckUserCredentials(&models.UserLogin{Username:doer.Username,Password:newPW.OldPassword}); err != nil { + if _, err = models.CheckUserCredentials(&models.UserLogin{Username: doer.Username, Password: newPW.OldPassword}); err != nil { if models.IsErrUserDoesNotExist(err) { return echo.NewHTTPError(http.StatusNotFound, "The user does not exist.") }