Browse Source

修改脚本数据
添加重设参数值

18339543638 1 year ago
parent
commit
a7ab485edb

+ 3 - 0
nb-auth/src/main/java/com/nb/auth/bean/AuthInfo.java

@@ -28,4 +28,7 @@ public class AuthInfo {
     private long activityTimeout;
     @ApiModelProperty("权限体系名称")
     private String loginType;
+
+    @ApiModelProperty("是否需要修改密码")
+    private Boolean pswNeedReset;
 }

+ 2 - 0
nb-auth/src/main/java/com/nb/auth/controller/AuthController.java

@@ -7,6 +7,7 @@ import com.nb.auth.granter.TokenParameter;
 import com.nb.auth.utils.SecurityUtil;
 import com.nb.core.exception.CustomException;
 import com.nb.core.result.R;
+import com.nb.core.utils.PswUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Value;
@@ -59,6 +60,7 @@ public class AuthController {
                 .grantType(req.getGrantType())
                 .loginType(grant.getLoginType())
                 .token(grant.getToken())
+                .pswNeedReset(grant.getPswNeedReset())
                 .build());
     }