Browse Source

去除登录日志记录

LuoDLeo 2 months ago
parent
commit
9c273c4a5b

+ 2 - 2
src/main/java/org/springblade/modules/api/controller/LoginController.java

@@ -192,7 +192,7 @@ public class LoginController extends BladeController {
 		return R.success("修改支付密码成功");
 	}
 
-	@ApiLog("登录用户验证-账号密码")
+	//@ApiLog("登录用户验证-账号密码")
 	@PostMapping("/login_account")
 	@ApiOperationSupport(order = 2)
 	@ApiOperation(value = "账号密码登录", notes = "账号:account,密码:password")
@@ -267,7 +267,7 @@ public class LoginController extends BladeController {
 		return R.data(b);
 	}
 
-	@ApiLog("登录用户验证-手机验证码登录")
+	//@ApiLog("登录用户验证-手机验证码登录")
 	@PostMapping("/login_phone")
 	@ApiOperationSupport(order = 3)
 	@ApiOperation(value = "手机验证码登录", notes = "账号:account,密码:password")

+ 2 - 4
src/main/java/org/springblade/modules/auth/endpoint/BladeTokenEndPoint.java

@@ -21,7 +21,6 @@ import com.wf.captcha.SpecCaptcha;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
-import lombok.AllArgsConstructor;
 import lombok.RequiredArgsConstructor;
 import org.springblade.common.cache.CacheNames;
 import org.springblade.core.cache.utils.CacheUtil;
@@ -29,7 +28,6 @@ import org.springblade.core.jwt.JwtUtil;
 import org.springblade.core.jwt.props.JwtProperties;
 import org.springblade.core.launch.constant.AppConstant;
 import org.springblade.core.launch.constant.TokenConstant;
-import org.springblade.core.log.annotation.ApiLog;
 import org.springblade.core.redis.cache.BladeRedis;
 import org.springblade.core.secure.BladeUser;
 import org.springblade.core.secure.utils.AuthUtil;
@@ -71,7 +69,7 @@ public class BladeTokenEndPoint {
 	@Value("${captcha.length}")
 	private Integer captchaLength;
 
-	@ApiLog("登录用户验证")
+	//@ApiLog("登录用户验证")
 	@PostMapping("/oauth/token")
 	@ApiOperation(value = "获取认证令牌", notes = "传入租户ID:tenantId,账号:account,密码:password")
 	public Kv token(@ApiParam(value = "租户ID", required = true) @RequestParam String tenantId,
@@ -111,7 +109,7 @@ public class BladeTokenEndPoint {
 		return TokenUtil.createAuthInfo(userInfo);
 	}
 
-	@ApiLog("登录用户验证")
+	//@ApiLog("登录用户验证")
 	@PostMapping("/oauth/tokenType")
 	@ApiOperation(value = "获取认证令牌", notes = "传入租户ID:tenantId,账号:account,密码:password")
 	public Kv tokenType(@ApiParam(value = "租户ID", required = true) @RequestParam String tenantId,