Skip to content

Commit

Permalink
Use new client-java user management syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingsilverfin committed Mar 9, 2023
1 parent 5a3b31b commit 8122b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TypeDBConsole.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ private boolean runUserPassword(TypeDBClient client, String user, String passwor
return false;
}
TypeDBClient.Cluster clientCluster = client.asCluster();
clientCluster.users().get(user).password(password);
clientCluster.users().passwordSet(user, password);
printer.info("Updated password for user '" + user + "'");
return true;
} catch (TypeDBClientException e) {
Expand All @@ -525,7 +525,7 @@ private boolean runUserDelete(TypeDBClient client, String user) {
return false;
}
TypeDBClient.Cluster clientCluster = client.asCluster();
clientCluster.users().get(user).delete();
clientCluster.users().delete(user);
printer.info("User '" + user + "' deleted");
return true;
} catch (TypeDBClientException e) {
Expand Down

0 comments on commit 8122b54

Please sign in to comment.