mdkcontroller 1.4.16 → 1.4.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,13 @@ export default function () {
107
107
  }
108
108
  },
109
109
  validateBool: (req, res) => {
110
- return validateBase(req, res);
110
+ const rs = validateBase(req, res);
111
+ if (rs != 1) {
112
+ res.clearCookie('access_token', { httpOnly: true });
113
+ res.clearCookie('sessionUExt', {});
114
+ res.clearCookie('username', {});
115
+ }
116
+ return rs;
111
117
  },
112
118
  validateByToken: (accessToken) => {
113
119
  return validateBaseByToken(accessToken);
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "node-cache": "^5.1.2"
9
9
  },
10
10
  "name": "mdkcontroller",
11
- "version": "1.4.16",
11
+ "version": "1.4.17",
12
12
  "keywords": [],
13
13
  "author": "KHANHNBD <khanh272421@gmail.com>",
14
14
  "license": "ISC",