diff --git a/backend/src/main/java/io/dataease/service/sys/SysUserService.java b/backend/src/main/java/io/dataease/service/sys/SysUserService.java index 3b0eaf57b2..ef35534000 100644 --- a/backend/src/main/java/io/dataease/service/sys/SysUserService.java +++ b/backend/src/main/java/io/dataease/service/sys/SysUserService.java @@ -73,6 +73,7 @@ public class SysUserService { @Transactional public int save(SysUserCreateRequest request) { + request.setUsername(request.getUsername().trim()); checkUsername(request); checkEmail(request); checkNickName(request);