修复token唯一性验证

This commit is contained in:
hanhh
2021-06-30 12:16:05 +08:00
parent b1bee910b2
commit e7aff6d1d6
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export default ({ app }: { app: Application }) => {
}),
);
app.use((req, res, next) => {
if (req.url && req.url.includes('/api/login')) {
if (req.url && req.path.includes('/api/login')) {
return next();
}
const data = fs.readFileSync(config.authConfigFile, 'utf8');