mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复token唯一性验证
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user