mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-22 22:57:35 +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
|
password === process.env.PASSWORD
|
||||||
) {
|
) {
|
||||||
return NextResponse.json({ ok: true });
|
return NextResponse.json({ ok: true });
|
||||||
|
} else if (username === process.env.USERNAME) {
|
||||||
|
return NextResponse.json({ error: '用户名或密码错误' }, { status: 401 });
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = getConfig();
|
const config = getConfig();
|
||||||
|
|||||||
Reference in New Issue
Block a user