Commit 477b67d3 by tntxia

Reset Password不用admin权限

parent d5aa02b7
......@@ -315,8 +315,6 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, UserEntity> implem
@Override
public HttpResultResponse<Object> resetPassword(String targetUserId, ChangePasswordParam param) {
// Only admins may reset other users' passwords
aboveAdminRoleAndThrowError();
if (!org.springframework.util.StringUtils.hasText(param.getNewPassword())) {
return HttpResultResponse.error("New password must not be empty");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment