功能完善
This commit is contained in:
parent
49320db995
commit
80cf8d68de
|
|
@ -57,7 +57,7 @@ public class TokenController
|
||||||
if (StringUtils.isNotNull(loginUser)) {
|
if (StringUtils.isNotNull(loginUser)) {
|
||||||
// 创建token
|
// 创建token
|
||||||
Map<String, Object> tokenMap = tokenService.createToken(loginUser);
|
Map<String, Object> tokenMap = tokenService.createToken(loginUser);
|
||||||
return R.ok(loginUser);
|
return R.ok(tokenService.createToken(loginUser));
|
||||||
} else {
|
} else {
|
||||||
return R.fail(null, "验证码错误");
|
return R.fail(null, "验证码错误");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import reactor.core.publisher.Flux;
|
||||||
@Component
|
@Component
|
||||||
public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
|
public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object>
|
||||||
{
|
{
|
||||||
private final static String[] VALIDATE_URL = new String[] { "/auth/login","/auth/sendCode","/auth/checkCode", "/auth/register" };
|
private final static String[] VALIDATE_URL = new String[] { "/auth/login", "/auth/register" };
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ValidateCodeService validateCodeService;
|
private ValidateCodeService validateCodeService;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue