Add Yvan password

This commit is contained in:
Quentin ANIERE 2022-05-11 14:08:18 +02:00
parent 84522cdeea
commit 91e5ae7c73

View File

@ -104,11 +104,11 @@ io.on("connection", (client) => {
app.use(express.static("src")); 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 = []; messagesHistory = [];
res.send("message history was cleared"); res.send("message history was cleared");
io.sockets.emit("refresh"); io.sockets.emit("refresh");
ADMIN_PASSWORD
log("Admin cleared messages history"); log("Admin cleared messages history");
}); });