恢复无数据库支持

This commit is contained in:
mtvpls
2026-01-18 11:57:05 +08:00
parent 23430c5f65
commit 64f65d11c4
5 changed files with 69 additions and 21 deletions

View File

@@ -129,10 +129,11 @@ export async function POST(req: NextRequest) {
// 验证成功设置认证cookie
const response = NextResponse.json({ ok: true });
const username = process.env.USERNAME || 'default';
const cookieValue = await generateAuthCookie(
undefined,
username,
password,
'user',
'owner',
true
); // localstorage 模式包含 password
const expires = new Date();

View File

@@ -47,15 +47,6 @@ export default function WarningPage() {
</p>
</div>
<div className='bg-blue-50 border-l-4 border-blue-500 p-3 sm:p-4 rounded-r-lg'>
<p className='text-base sm:text-lg font-semibold text-blue-800 mb-2'>
📢
</p>
<p className='text-sm sm:text-base text-blue-700'>
v205.0.0
</p>
</div>
<div className='space-y-3 sm:space-y-4'>
<h2 className='text-lg sm:text-xl font-semibold text-gray-900'>