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
|
-
|
|
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);
|