maoyd 8 years ago
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
     @Override
     public AccountVO registerByEmail(AccountVO accountVO, HttpServletRequest request, HttpServletResponse response) {
     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");
             throw new HttpBadRequestException("Captcha error");
         }
         }
         return register(accountVO);
         return register(accountVO);