diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java index 864f43b..0418ed3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -82,11 +82,19 @@ public class SysLoginController public AjaxResult getInfo() { SysUser user = SecurityUtils.getLoginUser().getUser(); + // 角色集合 Set roles = permissionService.getRolePermission(user); // 权限集合 Set permissions = permissionService.getMenuPermission(user); AjaxResult ajax = AjaxResult.success(); + //判断密码是否为初始密码 + if (user.getPassword().equals("Yingji@123")){ + ajax.put("status",1); + }else{ + ajax.put("status",0); + } + ajax.put("user", user); ajax.put("roles", roles); ajax.put("permissions", permissions);