diff options
Diffstat (limited to 'src/routes/(static)/login')
| -rw-r--r-- | src/routes/(static)/login/+page.server.ts | 6 | ||||
| -rw-r--r-- | src/routes/(static)/login/+page.svelte | 23 |
2 files changed, 13 insertions, 16 deletions
diff --git a/src/routes/(static)/login/+page.server.ts b/src/routes/(static)/login/+page.server.ts index fd7fec8c..6ba7e033 100644 --- a/src/routes/(static)/login/+page.server.ts +++ b/src/routes/(static)/login/+page.server.ts @@ -15,11 +15,7 @@ export const actions = { if (loginRedirect === "undefined") loginRedirect = undefined; try { - await login( - user, - cookies, - request.headers.get("cf-connecting-ip") - ); + await login(user, cookies, request.headers.get("cf-connecting-ip")); } catch (e: any) { return fail(400, { error: "Login failed", message: e.message, ...form }); } diff --git a/src/routes/(static)/login/+page.svelte b/src/routes/(static)/login/+page.svelte index df7db5e6..efaa84b8 100644 --- a/src/routes/(static)/login/+page.svelte +++ b/src/routes/(static)/login/+page.svelte @@ -76,7 +76,9 @@ <Pin bind:value={token} title="Enter 2FA Code" {cancel} notify={false} /> {/if} -<div class="mx-auto md:shadow-xl rounded-3xl max-w-xl w-full md:w-[480px] md:p-8 mb-20"> +<div + class="mx-auto md:shadow-xl rounded-3xl max-w-xl w-full md:w-[480px] md:p-8 mb-20" +> <h1 class="text-2xl font-bold text-center">{$t("login.signIn")}</h1> {#if form?.error} @@ -157,15 +159,14 @@ {/if} </button> - - <p class="text-secondary text-center font-medium"> - {$t("login.noAccount")} - <a - href={"/register"} - class="block md:inline text-black underline underline-offset-4 hover:opacity-80" - > - {$t("login.register")} - </a> - </p> + <p class="text-secondary text-center font-medium"> + {$t("login.noAccount")} + <a + href={"/register"} + class="block md:inline text-black underline underline-offset-4 hover:opacity-80" + > + {$t("login.register")} + </a> + </p> </form> </div> |
