feat(wireguard): bootstrap server keypair and default site exit node, fix UI confirmation actionMessage and query token auth (#43)

This commit is contained in:
2026-08-09 00:08:55 -04:00
committed by GitHub
parent 43349579e1
commit 03dd903e07
7 changed files with 488 additions and 604 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ async function auth(req, res, next){
return next();
}
req.token = await Auth.checkToken(req.header('auth-token'));
const tokStr = req.header('auth-token') || req.query.token;
req.token = await Auth.checkToken(tokStr);
req.user = req.token.user;
req.groups = typeof req.token.groupsArray === 'function' ? req.token.groupsArray() : [];
return next();