mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-23 04:09:49 +00:00
chore: fix build warnings, add deployment config, and cleanup lint errors
- Fix React Hook dependencies and Image optimization warnings - Add DATA_DIR and INITIAL_PASSWORD env var support - Fix Tailwind v4 legacy syntax and suppress CSS directives warnings - Add PropTypes and remove unused variables
This commit is contained in:
@@ -18,7 +18,9 @@ export async function POST(request) {
|
||||
|
||||
let isValid = false;
|
||||
if (!storedHash) {
|
||||
isValid = password === "123456";
|
||||
// Use env var or default
|
||||
const initialPassword = process.env.INITIAL_PASSWORD || "123456";
|
||||
isValid = password === initialPassword;
|
||||
} else {
|
||||
isValid = await bcrypt.compare(password, storedHash);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user