From 90b486ba54098be293a256d9313d201a3bd5221f Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 18 十月 2023 21:31:02 +0800
Subject: [PATCH] 1、编码规则增加显示所有者列,高级查询中增加所有者; 2、用户管理界面添加停用启用按钮。

---
 Source/UBCS/ubcs-auth/src/main/java/com/vci/ubcs/auth/granter/PwdFreeLoginTokenGranter.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS/ubcs-auth/src/main/java/com/vci/ubcs/auth/granter/PwdFreeLoginTokenGranter.java b/Source/UBCS/ubcs-auth/src/main/java/com/vci/ubcs/auth/granter/PwdFreeLoginTokenGranter.java
index 3d5f4e6..9bdae1d 100644
--- a/Source/UBCS/ubcs-auth/src/main/java/com/vci/ubcs/auth/granter/PwdFreeLoginTokenGranter.java
+++ b/Source/UBCS/ubcs-auth/src/main/java/com/vci/ubcs/auth/granter/PwdFreeLoginTokenGranter.java
@@ -85,6 +85,10 @@
 
 		// 鏋勫缓鎺堟潈淇℃伅
 		User user = result.getData().getUser();
+		// 鍒ゆ柇褰撳墠鐢ㄦ埛鏄惁琚仠鐢�
+		if(user.getUserStatus() == 1){
+			throw new InvalidGrantException(TokenUtil.USER_LOCK);
+		}
 		Kv detail = result.getData().getDetail();
 		if (user == null || user.getId() == null) {
 			throw new InvalidGrantException("passwordfree grant failure, user is null");

--
Gitblit v1.9.3