From 91e5ae7c73a56bcf64d1dc3983f749b6c649dbd2 Mon Sep 17 00:00:00 2001 From: Quentin ANIERE Date: Wed, 11 May 2022 14:08:18 +0200 Subject: [PATCH] Add Yvan password --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index beca53b..71b444f 100644 --- a/index.js +++ b/index.js @@ -104,11 +104,11 @@ io.on("connection", (client) => { app.use(express.static("src")); -app.get("/clear", basicAuth({users:{"quentin": process.env.ADMIN_PASSWORD}, challenge: true}), (req, res) => { +app.get("/clear", basicAuth({users:{"quentin": process.env.ADMIN_PASSWORD, "yvan": process.env.YVAN_PASSWORD}, challenge: true}), (req, res) => { messagesHistory = []; res.send("message history was cleared"); io.sockets.emit("refresh"); - + ADMIN_PASSWORD log("Admin cleared messages history"); });