mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-06-13 11:14:39 +08:00
ForgotPassword
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user