bossenti commented on code in PR #2664:
URL: https://github.com/apache/streampipes/pull/2664#discussion_r1542864839


##########
streampipes-model-client/src/main/java/org/apache/streampipes/model/client/user/UserRegistrationData.java:
##########
@@ -18,32 +18,7 @@
 
 package org.apache.streampipes.model.client.user;
 
-public class Token {
-
-  private String principal;
-  private String credentials;
-
-  public Token(String principal, String credentials) {
-    super();
-    this.principal = principal;
-    this.credentials = credentials;
-  }
-
-  public String getPrincipal() {
-    return principal;
-  }
-
-  public void setPrincipal(String principal) {
-    this.principal = principal;
-  }
-
-  public String getCredentials() {
-    return credentials;
-  }
-
-  public void setCredentials(String credentials) {
-    this.credentials = credentials;
-  }
-
+import java.util.List;
 
+public record UserRegistrationData(String username, String password, 
List<String> roleNames) {

Review Comment:
   I renamed it as `roles` implies for me `List<Role>` (we have such an enum in 
the same package). So I would align it in `UserInfo` as well, but we can also 
revert the name change



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to