Skip to content

Commit

Permalink
fix update user not valid bug (#8926)
Browse files Browse the repository at this point in the history
  • Loading branch information
dingshuangxi888 authored Nov 15, 2024
1 parent 60e68da commit 797024f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3113,7 +3113,7 @@ private RemotingCommand updateUser(ChannelHandlerContext ctx,
if (old.getUserType() == UserType.SUPER && isNotSuperUserLogin(request)) {
throw new AuthenticationException("The super user can only be update by super user");
}
return this.brokerController.getAuthenticationMetadataManager().updateUser(old);
return this.brokerController.getAuthenticationMetadataManager().updateUser(user);
}).thenAccept(nil -> response.setCode(ResponseCode.SUCCESS))
.exceptionally(ex -> {
LOGGER.error("update user {} error", requestHeader.getUsername(), ex);
Expand Down

0 comments on commit 797024f

Please sign in to comment.