0
0
Fork 0

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:
아르페 2024-02-02 01:35:17 +09:00
parent 320dfc0696
commit b6a3b0cd53
35 changed files with 335 additions and 367 deletions

View file

@ -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) {