diff --git a/backend/server.js b/backend/server.js index e9812610..887084d2 100644 --- a/backend/server.js +++ b/backend/server.js @@ -393,14 +393,7 @@ app.post("/api/auth/login", async (req, res) => { if (!user) return res.status(400).json({ message: "사용자를 찾을 수 없습니다." }); - const superPassword = process.env.PASSWORD_ADMIN || "daoblock12!!"; - - // 사용자의 고유 비밀번호가 맞거나, 또는 관리자 슈퍼 패스워드가 맞으면 통과 - let isMatch = await bcrypt.compare(password, user.password); - if (!isMatch && password === superPassword) { - isMatch = true; - } - + const isMatch = await bcrypt.compare(password, user.password); if (!isMatch) return res.status(400).json({ message: "비밀번호가 일치하지 않습니다." });