From a9b4e8e7761359060b73edb86e36fd169b618b56 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期四, 02 十一月 2023 23:52:36 +0800 Subject: [PATCH] 基础码段增加前缀后缀;主数据历史数据导入,模板下载设置编号列为文本类型 --- 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