perf(系统管理): 新增用户时自动过滤账号开头结尾空字符串

This commit is contained in:
fit2cloud-chenyw 2022-07-26 15:57:44 +08:00
parent fe86549e32
commit 6b0ce1eaec

View File

@ -73,6 +73,7 @@ public class SysUserService {
@Transactional @Transactional
public int save(SysUserCreateRequest request) { public int save(SysUserCreateRequest request) {
request.setUsername(request.getUsername().trim());
checkUsername(request); checkUsername(request);
checkEmail(request); checkEmail(request);
checkNickName(request); checkNickName(request);