mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-23 03:04:43 +08:00
fix: two usable password
This commit is contained in:
@@ -51,6 +51,8 @@ export async function POST(req: NextRequest) {
|
||||
password === process.env.PASSWORD
|
||||
) {
|
||||
return NextResponse.json({ ok: true });
|
||||
} else if (username === process.env.USERNAME) {
|
||||
return NextResponse.json({ error: '用户名或密码错误' }, { status: 401 });
|
||||
}
|
||||
|
||||
const config = getConfig();
|
||||
|
||||
Reference in New Issue
Block a user