Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
c2417662af0e5363032ccbeb6a30f698f7e10ebc
1 parent
881009fe
sessionID
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
apps/passport/controllers/captcha.js
apps/passport/controllers/captcha.js
View file @
c241766
...
...
@@ -7,7 +7,7 @@ exports.get = (req, res, next) => {
let
data
=
{
src
:
''
};
let
udid
=
req
.
session
.
id
;
let
udid
=
req
.
session
ID
;
return
req
.
ctx
(
imgCheckServiceModel
).
gen
(
udid
).
then
(
result
=>
{
if
(
result
.
code
===
200
&&
result
.
data
)
{
...
...
@@ -20,7 +20,7 @@ exports.get = (req, res, next) => {
};
exports
.
imgCheck
=
(
req
,
res
,
next
)
=>
{
let
udid
=
req
.
session
.
id
;
let
udid
=
req
.
session
ID
;
return
req
.
ctx
(
imgCheckServiceModel
).
gen
(
udid
).
then
(
result
=>
{
if
(
result
.
code
===
200
&&
result
.
data
)
{
...
...
@@ -34,7 +34,7 @@ exports.imgCheck = (req, res, next) => {
* 验证img-check验证码
*/
exports
.
validate
=
(
req
,
res
,
next
)
=>
{
let
udid
=
req
.
session
.
id
;
let
udid
=
req
.
session
ID
;
let
captchaInput
=
req
.
body
.
captcha
;
return
req
.
ctx
(
imgCheckServiceModel
).
check
(
udid
,
captchaInput
).
then
(
result
=>
{
...
...
Please
register
or
login
to post a comment