Add Yvan password
This commit is contained in:
parent
84522cdeea
commit
91e5ae7c73
4
index.js
4
index.js
@ -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");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user