Showing
1 changed file
with
4 additions
and
3 deletions
@@ -469,10 +469,11 @@ function validateCaptchaSmsLocal() { | @@ -469,10 +469,11 @@ function validateCaptchaSmsLocal() { | ||
469 | // 网络验证短信验证码 | 469 | // 网络验证短信验证码 |
470 | // Note: 这里的验证码只能成功验证一次,十分钟内有效 | 470 | // Note: 这里的验证码只能成功验证一次,十分钟内有效 |
471 | function validateCaptchaSmsAsync() { | 471 | function validateCaptchaSmsAsync() { |
472 | - var smsToken = $.trim($captchaSmsTokenHideInput.val()); | 472 | + var smsToken = getCaptchaSmsTokenVal(); |
473 | 473 | ||
474 | - if (!smsToken) { | ||
475 | - return $.Deferred().resolve().promise; // eslint-disable-line | 474 | + if (smsToken === '') { |
475 | + showCaptchaSmsTip('验证码不正确'); | ||
476 | + return $.Deferred().reject().promise(); // eslint-disable-line | ||
476 | } | 477 | } |
477 | 478 | ||
478 | return $.ajax({ | 479 | return $.ajax({ |
-
Please register or login to post a comment