diff --git a/src/lib/auth.ts b/src/lib/auth.ts index 34fab3c4..5e824d6e 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -227,19 +227,6 @@ instance.subscribe(async (i) => { } catch (e) {} }) -export function updateJwt(id: number, newJwt: string) { - const pd = get(profileData) - let prof = pd.profiles.find((p) => p.id == id) - - if (!prof) return - prof = serializeUser(prof) - prof.jwt = newJwt - - profileData.update((p) => ({ ...p, profile: id })) - - profile.update(() => prof) -} - export async function setUserID(id: number) { const pd = get(profileData) if (id == -1) { diff --git a/src/routes/admin/config/+page.svelte b/src/routes/admin/config/+page.svelte index 920d7e82..dc293a15 100644 --- a/src/routes/admin/config/+page.svelte +++ b/src/routes/admin/config/+page.svelte @@ -128,6 +128,16 @@ Federation enabled + + Federation debug mode + + + Captcha enabled + + {#if formData.captcha_enabled} + {console.log(formData.captcha_difficulty)} +