Merge branch 'feature/passReset' into release/5.6
Showing
2 changed files
with
7 additions
and
1 deletions
@@ -475,6 +475,12 @@ const modPwdByCodeAPI = (req, res, next) => { | @@ -475,6 +475,12 @@ const modPwdByCodeAPI = (req, res, next) => { | ||
475 | newPwd: body.newPwd, | 475 | newPwd: body.newPwd, |
476 | token: req.session.CSToken | 476 | token: req.session.CSToken |
477 | }).then(d => { | 477 | }).then(d => { |
478 | + | ||
479 | + if (d.code === 200 && req.session) { | ||
480 | + delete req.session.CSToken; | ||
481 | + delete req.session.canSkip; | ||
482 | + } | ||
483 | + | ||
478 | res.json(d); | 484 | res.json(d); |
479 | }).catch(next); | 485 | }).catch(next); |
480 | }; | 486 | }; |
@@ -92,7 +92,7 @@ $('#pwd, #repwd').keydown(function(e) { | @@ -92,7 +92,7 @@ $('#pwd, #repwd').keydown(function(e) { | ||
92 | }); | 92 | }); |
93 | 93 | ||
94 | $next.on('click', function() { | 94 | $next.on('click', function() { |
95 | - var refer = $weakPwdPass.data('href') || '/'; | 95 | + var refer = $weakPwdPass.data('url') || '/'; |
96 | var $this = $(this); | 96 | var $this = $(this); |
97 | 97 | ||
98 | // is frequent click | 98 | // is frequent click |
-
Please register or login to post a comment