Merge branch 'feature/passReset' into release/5.6
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -104,6 +104,9 @@ const syncUserSession = (user, req, res) => { | @@ -104,6 +104,9 @@ const syncUserSession = (user, req, res) => { | ||
104 | if (user.canSkip && user.token) { | 104 | if (user.canSkip && user.token) { |
105 | req.session.canSkip = user.canSkip; | 105 | req.session.canSkip = user.canSkip; |
106 | req.session.CSToken = user.token; | 106 | req.session.CSToken = user.token; |
107 | + } else { | ||
108 | + delete req.session.canSkip; | ||
109 | + delete req.session.CSToken; | ||
107 | } | 110 | } |
108 | 111 | ||
109 | if (isTipCert && isTipCert.code === 200 && isTipCert.data) { | 112 | if (isTipCert && isTipCert.code === 200 && isTipCert.data) { |
-
Please register or login to post a comment