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"); });