dominikriemer commented on code in PR #2665:
URL: https://github.com/apache/streampipes/pull/2665#discussion_r1542823868
##########
streampipes-user-management/src/main/java/org/apache/streampipes/user/management/service/TokenService.java:
##########
@@ -28,9 +28,8 @@ public class TokenService {
public RawUserApiToken createAndStoreNewToken(String email,
RawUserApiToken baseToken) {
UserAccount user = getUserStorage().getUserAccount(email);
- RawUserApiToken generatedToken =
TokenUtil.createToken(baseToken.getTokenName());
+ RawUserApiToken generatedToken =
TokenUtil.createToken(baseToken.tokenName());
storeToken(user, generatedToken);
- generatedToken.setHashedToken("");
Review Comment:
I think we just don't want to expose the hashed token to the user.
--
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]