Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郝肖肖
2017-04-19 17:09:55 +0800
Commit
c1bea7731f00ed5cd5968e7d1f4259eb8459358d
2 parents
76c5e6dc
dee41f14
Merge branch 'feature/passReset' into release/5.6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
apps/passport/controllers/back.js
public/js/passport/back/weak.js
apps/passport/controllers/back.js
View file @
c1bea77
...
...
@@ -475,6 +475,12 @@ const modPwdByCodeAPI = (req, res, next) => {
newPwd
:
body
.
newPwd
,
token
:
req
.
session
.
CSToken
}).
then
(
d
=>
{
if
(
d
.
code
===
200
&&
req
.
session
)
{
delete
req
.
session
.
CSToken
;
delete
req
.
session
.
canSkip
;
}
res
.
json
(
d
);
}).
catch
(
next
);
};
...
...
public/js/passport/back/weak.js
View file @
c1bea77
...
...
@@ -92,7 +92,7 @@ $('#pwd, #repwd').keydown(function(e) {
});
$next
.
on
(
'click'
,
function
()
{
var
refer
=
$weakPwdPass
.
data
(
'
href
'
)
||
'/'
;
var
refer
=
$weakPwdPass
.
data
(
'
url
'
)
||
'/'
;
var
$this
=
$
(
this
);
// is frequent click
...
...
Please
register
or
login
to post a comment