1. 避免无登录的操作无法记录日志的情况
2. 短信登录可以不传递租户信息
This commit is contained in:
@@ -1944,7 +1944,7 @@ COMMENT ON TABLE system_oauth2_refresh_token IS 'OAuth2 刷新令牌';
|
||||
CREATE TABLE system_operate_log (
|
||||
id bigint NOT NULL PRIMARY KEY,
|
||||
trace_id varchar(64) DEFAULT '' NULL,
|
||||
user_id bigint NOT NULL,
|
||||
user_id bigint NULL,
|
||||
user_type smallint DEFAULT 0 NOT NULL,
|
||||
type varchar(50) NOT NULL,
|
||||
sub_type varchar(50) NOT NULL,
|
||||
|
||||
@@ -143,6 +143,7 @@ public class AuthController {
|
||||
|
||||
@PostMapping("/sms-login")
|
||||
@PermitAll
|
||||
@TenantIgnore
|
||||
@Operation(summary = "使用短信验证码登录")
|
||||
public CommonResult<AuthLoginRespVO> smsLogin(@RequestBody @Valid AuthSmsLoginReqVO reqVO) {
|
||||
return success(authService.smsLogin(reqVO));
|
||||
|
||||
Reference in New Issue
Block a user