style: use space indentation
feat: no new users allowed fix: change base language to Korean fix: change gacha to random text from devs
This commit is contained in:
parent
320dfc0696
commit
b6a3b0cd53
35 changed files with 335 additions and 367 deletions
|
@ -180,8 +180,12 @@ router.get('(.*)', async (ctx) => {
|
|||
|
||||
async function login(ctx: Context, user: Record<string, unknown>, host: string, token: string) {
|
||||
const isNewcomer = !(await getUser(user.username as string, host));
|
||||
await upsertUser(user.username as string, host, token);
|
||||
if (isNewcomer) {
|
||||
await die(ctx, 'noNewUserAllowed', 403);
|
||||
return;
|
||||
}
|
||||
|
||||
await upsertUser(user.username as string, host, token);
|
||||
const u = await getUser(user.username as string, host);
|
||||
|
||||
if (!u) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue