镜像自地址
https://github.com/Lomanic/presence-button-web
已同步 2025-09-18 14:18:02 +00:00
🛳🍙 Checkpoint
./server.js:933874/84
这个提交包含在:
父节点
d3c87768d6
当前提交
2f679e086b
@ -47,7 +47,8 @@ app.get("/status", (req, res) => {
|
|||||||
|
|
||||||
// parse login and password from headers
|
// parse login and password from headers
|
||||||
const b64auth = (req.headers.authorization || "").split(" ")[1] || "";
|
const b64auth = (req.headers.authorization || "").split(" ")[1] || "";
|
||||||
const [_, login, password] = new Buffer(b64auth, 'base64').toString().match(/(.*):(.*)/) || []; // slightly modified as
|
const [_, login, password] = new Buffer(b64auth, 'base64').toString().match(/(.*):(.*)/) || []; // slightly modified as we use : in username
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!login ||
|
!login ||
|
||||||
!password ||
|
!password ||
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户