恢复无数据库支持
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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'>
|
||||
主要风险
|
||||
|
||||
Reference in New Issue
Block a user