summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
authorJoseph Reynolds <joseph-reynolds@charter.net>2020-05-20 02:25:07 +0300
committerJoseph Reynolds <joseph-reynolds@charter.net>2020-05-20 21:03:52 +0300
commitc3c03fde3112bfaff25eaff296cc3a74a3648192 (patch)
tree045e581c0c2a27228157db02834cd8119365c8f8 /redfish-core
parent6bd5a8d2f6acb79a16c4d514ffd1da6b8c5b97d7 (diff)
downloadbmcweb-c3c03fde3112bfaff25eaff296cc3a74a3648192.tar.xz
update to ManagerAccount.v1_3_0
The PasswordChangeRequired commit did not pass the Redfish validator. It uses the ManagerAccount.PasswordChangeRequired property which was added in 1_3_0. Tested: Passed the Redfish Service Validator Signed-off-by: Joseph Reynolds <joseph-reynolds@charter.net> Change-Id: Icb3bacd887c018baad107c22ddd7623243232339
Diffstat (limited to 'redfish-core')
-rw-r--r--redfish-core/lib/account_service.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index 609c7dbd23..d41a419432 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -132,14 +132,14 @@ void userErrorMessageHandler(const sd_bus_error* e,
"xyz.openbmc_project.User.Common.Error.UserNameExists") == 0)
{
messages::resourceAlreadyExists(asyncResp->res,
- "#ManagerAccount.v1_0_3.ManagerAccount",
+ "#ManagerAccount.v1_3_0.ManagerAccount",
"UserName", newUser);
}
else if (strcmp(errorMessage, "xyz.openbmc_project.User.Common.Error."
"UserNameDoesNotExist") == 0)
{
messages::resourceNotFound(
- asyncResp->res, "#ManagerAccount.v1_0_3.ManagerAccount", username);
+ asyncResp->res, "#ManagerAccount.v1_3_0.ManagerAccount", username);
}
else if (strcmp(errorMessage,
"xyz.openbmc_project.Common.Error.InvalidArgument") == 0)
@@ -1575,7 +1575,7 @@ class ManagerAccount : public Node
}
asyncResp->res.jsonValue = {
- {"@odata.type", "#ManagerAccount.v1_0_3.ManagerAccount"},
+ {"@odata.type", "#ManagerAccount.v1_3_0.ManagerAccount"},
{"Name", "User Account"},
{"Description", "User Account"},
{"Password", nullptr}};
@@ -1772,7 +1772,7 @@ class ManagerAccount : public Node
if (!rc)
{
messages::resourceNotFound(
- asyncResp->res, "#ManagerAccount.v1_0_3.ManagerAccount",
+ asyncResp->res, "#ManagerAccount.v1_3_0.ManagerAccount",
username);
return;
}
@@ -1785,7 +1785,7 @@ class ManagerAccount : public Node
{
messages::resourceNotFound(
asyncResp->res,
- "#ManagerAccount.v1_0_3.ManagerAccount", username);
+ "#ManagerAccount.v1_3_0.ManagerAccount", username);
}
else if (retval == PAM_AUTHTOK_ERR)
{
@@ -1907,7 +1907,7 @@ class ManagerAccount : public Node
if (ec)
{
messages::resourceNotFound(
- asyncResp->res, "#ManagerAccount.v1_0_3.ManagerAccount",
+ asyncResp->res, "#ManagerAccount.v1_3_0.ManagerAccount",
username);
return;
}