mirror of
https://gitee.com/czh-dev/upload-hub
synced 2026-07-14 01:11:23 +08:00
feat:添加访问密码
This commit is contained in:
@@ -42,7 +42,7 @@ public class AuthServiceImpl implements IAuthService {
|
||||
user.setCreateTime(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
|
||||
|
||||
}
|
||||
user.setPassword(password != null && password.trim().isEmpty() ? null : password);
|
||||
user.setPassword(password != null && password.trim().isEmpty() ? "" : password);
|
||||
if (user.getId() == null) {
|
||||
userConfigMapper.insert(user);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user