ForgotPassword

This commit is contained in:
MaxKey
2022-04-25 22:00:45 +08:00
parent d6856b1f54
commit 7ddde38019
25 changed files with 599 additions and 160 deletions

View File

@@ -17,21 +17,26 @@
package org.maxkey.web.contorller;
public class ImageCaptcha {
String id;
String state;
String image;
public ImageCaptcha(String id, String image) {
public ImageCaptcha(String state, String image) {
super();
this.id = id;
this.state = state;
this.image = image;
}
public String getId() {
return id;
public String getState() {
return state;
}
public void setId(String id) {
this.id = id;
public void setState(String state) {
this.state = state;
}
public String getImage() {
return image;
}

View File

@@ -88,7 +88,7 @@ public class ImageCaptchaEndpoint {
}else {
state = authJwtService.genJwt();
}
kaptchaKey = authJwtService.resolveTicket(state);
kaptchaKey = authJwtService.resolveJWTID(state);
_logger.trace("kaptchaKey {} , Captcha Text is {}" ,kaptchaKey, kaptchaValue);
momentaryService.put("", kaptchaKey, kaptchaValue);