#IBY0OL 长时间未操作,验证码无法登录
This commit is contained in:
@@ -78,10 +78,11 @@ public class ImageCaptchaEndpoint {
|
||||
}
|
||||
}
|
||||
String kaptchaKey = "";
|
||||
if(StringUtils.isNotBlank(state)
|
||||
&& !state.equalsIgnoreCase("state")
|
||||
&& authTokenService.validateJwtToken(state)) {
|
||||
if(StringUtils.isNotBlank(state) && !state.equalsIgnoreCase("state")) {
|
||||
//just validate state Token
|
||||
if(!authTokenService.validateJwtToken(state)) {
|
||||
return new Message<>(Message.FAIL,"JwtToken is not Validate ");
|
||||
}
|
||||
}else {
|
||||
state = authTokenService.genRandomJwt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user