...
|
...
|
@@ -859,10 +859,8 @@ function loginAsync() { |
|
|
location.href = res.data.session;
|
|
|
}
|
|
|
} else {
|
|
|
console.log(res);
|
|
|
if (currentLogin.type() === 'password') {
|
|
|
if (res.code === 405) {
|
|
|
// 极验证提示错误
|
|
|
passwordCaptchaImg.showTip(res.message);
|
|
|
return;
|
|
|
}
|
...
|
...
|
@@ -995,9 +993,19 @@ $captchaSmsBtn.on('click', function() { |
|
|
validateAccount()
|
|
|
.then(validateSmsCaptchaImg)
|
|
|
.then(function() {
|
|
|
disable60sSendSmsBtn();
|
|
|
return sendCaptchaSmsAsync();
|
|
|
}).fail(refreshSmsCaptchaImg);
|
|
|
return sendCaptchaSmsAsync().then(function(res) {
|
|
|
if (res.code === 200) {
|
|
|
smsCaptchaImg.refresh();
|
|
|
return $.Deferred().resolve().promise(); // eslint-disable-line
|
|
|
}
|
|
|
|
|
|
if (res.code === 405) {
|
|
|
smsCaptchaImg.showTip(res.message);
|
|
|
}
|
|
|
|
|
|
return $.Deferred.reject().promise(); // eslint-disable-line
|
|
|
}).then(disable60sSendSmsBtn);
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// 记住登录状态
|
...
|
...
|
|