fix(account): 创建账户时使用手机号作为登录账号

This commit is contained in:
小蟑螂
2026-03-29 23:34:47 +08:00
parent d8db15148d
commit b7cf668818
@@ -92,6 +92,7 @@ public class AccountServiceImpl extends ServiceImpl<UserMapper, UserPO> implemen
UserPO user = new UserPO();
BeanUtils.copyProperties(createAccountDTO, user);
user.setPassword(passwordEncoder.encode(createAccountDTO.getPassword()));
user.setLoginCode(createAccountDTO.getPhone()); // 使用手机号作为登录账号
user.setRole("user"); // 默认角色
user.setStatus(0); // 正常状态
user.setPwdSecurityLevel(calculatePasswordSecurityLevel(createAccountDTO.getPassword()));