修改登录页面

This commit is contained in:
eoao
2025-06-04 00:20:53 +08:00
parent 3190b47bb9
commit dac0383bab
24 changed files with 221 additions and 143 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -6,8 +6,8 @@
<title></title>
<link rel="icon" href="/assets/favicon-C5dAZutX.svg" type="image/svg+xml">
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<script type="module" crossorigin src="/assets/index-BMdBWW7j.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Blmh8UBo.css">
<script type="module" crossorigin src="/assets/index-DQ5PlDSG.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-6pbK1Sk3.css">
</head>
<body>
<div id="loading-first">

View File

@@ -13,6 +13,7 @@ export const setting = sqliteTable('setting', {
secretKey: text('secret_key'),
siteKey: text('site_key'),
background: text('background'),
loginOpacity: integer('login_opacity').default(0.9),
resendTokens: text('resend_tokens').default("{}").notNull(),
});
export default setting

View File

@@ -29,6 +29,7 @@ const initService = {
`ALTER TABLE setting ADD COLUMN site_key TEXT;`,
`ALTER TABLE setting ADD COLUMN secret_key TEXT;`,
`ALTER TABLE setting ADD COLUMN background TEXT;`,
`ALTER TABLE setting ADD COLUMN login_opacity INTEGER NOT NULL DEFAULT 0.88;`,
`ALTER TABLE user ADD COLUMN create_ip TEXT;`,
`ALTER TABLE user ADD COLUMN active_ip TEXT;`,

View File

@@ -58,7 +58,7 @@ const loginService = {
const userId = await userService.insert(c, { email, password: hash, salt, type: roleRow.roleId });
await userService.updateUserInfo(c, userId);
await userService.updateUserInfo(c, userId, true);
await accountService.insert(c, { userId: userId, email });
},