maoyd il y a 8 ans
Parent
commit
f887343073

+ 1 - 1
mooctest-site-server/src/main/java/cn/iselab/mooctest/site/web/logic/impl/AccountLogicImpl.java

@@ -182,7 +182,7 @@ public class AccountLogicImpl implements AccountLogic {
     @Override
     public AccountVO registerByEmail(AccountVO accountVO, HttpServletRequest request, HttpServletResponse response) {
 
-        if (CaptchaUtils.verifyPictureCaptcha(request, accountVO.getCaptcha())) {
+        if (!CaptchaUtils.verifyPictureCaptcha(request, accountVO.getCaptcha())) {
             throw new HttpBadRequestException("Captcha error");
         }
         return register(accountVO);