Skip to content

Commit

Permalink
Merge pull request CESNET#163 from zlamalp/fix
Browse files Browse the repository at this point in the history
PWD-RESET: Fixed changePassword() method param name
  • Loading branch information
zlamalp committed Jun 24, 2021
1 parent 57a4842 commit cc70785
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public static Request changePassword(int userId, String loginNamespace, String o

JsonClient client = new JsonClient(events);
if (userId > 0) client.put("user", userId);
if (loginNamespace != null && !loginNamespace.isEmpty()) client.put("loginNamespace", loginNamespace);
if (loginNamespace != null && !loginNamespace.isEmpty()) client.put("namespace", loginNamespace);
if (oldPass != null && !oldPass.isEmpty()) client.put("oldPassword", oldPass);
if (newPass!= null && !newPass.isEmpty()) client.put("newPassword", newPass);
client.put("checkOldPassword", 1);
Expand All @@ -293,7 +293,7 @@ public static Request resetPassword(int userId, String loginNamespace, String ne
client.put("checkOldPassword", 0);

if (userId > 0) client.put("user", userId);
if (loginNamespace != null && !loginNamespace.isEmpty()) client.put("loginNamespace", loginNamespace);
if (loginNamespace != null && !loginNamespace.isEmpty()) client.put("namespace", loginNamespace);
if (newPass!= null && !newPass.isEmpty()) client.put("newPassword", newPass);
return client.call(USERS_MANAGER + "changePassword");

Expand Down

0 comments on commit cc70785

Please sign in to comment.