代码更新
This commit is contained in:
@@ -92,6 +92,9 @@ public class AuthorizationController {
|
||||
throw new BadRequestException("账号或密码错误");
|
||||
}
|
||||
|
||||
// 判断是否被锁
|
||||
if (!userDto.getEnabled()) throw new BadRequestException("账号未激活");
|
||||
|
||||
// 获取权限列表 - 登录查找权限
|
||||
List<String> permissionList = roleService.getPermissionList(userDto);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user