Kaynağa Gözat

Accept Merge Request #274 更新生产 : (test -> prod)

Merge Request: 更新生产
Created By: @浅川
Accepted By: @浅川
URL: https://coding.net/t/aft/p/AFT/git/merge/274
浅川 8 yıl önce
ebeveyn
işleme
02d3015a58

+ 5 - 2
src/main/java/com/goafanti/common/controller/PublicController.java

@@ -421,12 +421,15 @@ public class PublicController extends BaseController {
 			cleanCodeSession();
 			return res;
 		}
-		if (!TokenManager.getSession().getAttribute(VerifyCodeUtils.RESET_CODE).equals(resetCode)) {
+		if(null == TokenManager.getSession().getAttribute(VerifyCodeUtils.RESET_CODE)){
+			res.getError().add(buildError(ErrorConstants.RESET_CODE_OVERTIME, "", "页面超时失效,请重新获取验证码!"));
+			cleanCodeSession();
+			return res;
+		}else if(!TokenManager.getSession().getAttribute(VerifyCodeUtils.RESET_CODE).equals(resetCode)){
 			res.getError().add(buildError(ErrorConstants.RESET_CODE_ERROR, "", "验证码错误,请重新获取验证码!"));
 			cleanCodeSession();
 			return res;
 		}
-
 		if (StringUtils.isBlank(newPwd)) {
 			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "新密码"));
 			return res;