修改登录页面
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
mail-worker/dist/index.html
vendored
4
mail-worker/dist/index.html
vendored
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;`,
|
||||
|
||||
@@ -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 });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user