Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
8 years ago
Commit
9e2be1c17a218e8d686877a111d24d07eb5ec7e5
1 parent
e7df29e6
验证码
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
apps/passport/controllers/captcha.js
apps/passport/controllers/login.js
public/js/passport/login/index.js
apps/passport/controllers/captcha.js
View file @
9e2be1c
...
...
@@ -109,9 +109,9 @@ const checkSendMobile = (req, res) => {
return
res
.
json
({
code
:
200
,
data
:
{}
})
})
;
}
}
}
;
module
.
exports
=
{
requiredAPI
,
...
...
apps/passport/controllers/login.js
View file @
9e2be1c
...
...
@@ -241,7 +241,7 @@ const local = {
message
:
'格式错误'
});
}
LoginService
.
sendPasswordBySMS
(
area
,
mobile
).
then
((
result
)
=>
{
if
(
result
&&
result
.
code
===
200
)
{
req
.
session
.
sendMobile
=
mobile
;
...
...
public/js/passport/login/index.js
View file @
9e2be1c
...
...
@@ -659,9 +659,7 @@ $smsBtn.on('mousedown', function() {
return
validateCaptchaImg
(
true
);
})
.
then
(
function
()
{
var
defer
=
$
.
Deferred
();
return
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
url
:
'/passport/captcha/checkSendMobile'
,
data
:
{
...
...
@@ -672,15 +670,11 @@ $smsBtn.on('mousedown', function() {
errTip
(
$imgCaptchaInput
,
data
.
message
);
ep
.
emit
(
'captcha'
,
false
);
refreshCaptcha
();
return
defer
.
reject
(
false
);
}
else
{
return
true
;
disable60sSendSmsBtn
();
sendCaptchaSmsAsync
();
}
});
})
.
then
(
function
()
{
disable60sSendSmsBtn
();
return
sendCaptchaSmsAsync
();
});
});
...
...
Please
register
or
login
to post a comment