Browse Source

vcode equals ignore case

albertshaw 8 years ago
parent
commit
9d91ec96fe
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/goafanti/user/controller/UserApiController.java

+ 2 - 1
src/main/java/com/goafanti/user/controller/UserApiController.java

@@ -772,7 +772,8 @@ public class UserApiController extends BaseApiController {
 				res.getError().add(buildError(ErrorConstants.VCODE_EMPTY_ERROR));
 				return res;
 			}
-			if (!TokenManager.getSession().getAttribute(VerifyCodeUtils.V_CODE).equals(verificationCode)) {
+			if (!verificationCode
+					.equalsIgnoreCase((String) TokenManager.getSession().getAttribute(VerifyCodeUtils.V_CODE))) {
 				res.getError().add(buildError(ErrorConstants.VCODE_ERROR));
 				return res;
 			}