mirror of
https://github.com/BradNut/example-sveltekit-email-password-webauthn
synced 2025-09-08 17:40:27 +00:00
remove links
This commit is contained in:
parent
85ef71a6f7
commit
7df26ea7a8
2 changed files with 3 additions and 15 deletions
|
|
@ -19,9 +19,7 @@ export async function load(event: RequestEvent) {
|
||||||
if (session.twoFactorVerified) {
|
if (session.twoFactorVerified) {
|
||||||
return redirect(302, "/reset-password");
|
return redirect(302, "/reset-password");
|
||||||
}
|
}
|
||||||
return {
|
return {};
|
||||||
user
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const actions: Actions = {
|
export const actions: Actions = {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { enhance } from "$app/forms";
|
import { enhance } from "$app/forms";
|
||||||
|
|
||||||
import type { ActionData, PageData } from "./$types";
|
import type { ActionData } from "./$types";
|
||||||
|
|
||||||
export let data: PageData;
|
|
||||||
export let form: ActionData;
|
export let form: ActionData;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -13,13 +12,4 @@
|
||||||
<input id="form-recovery-code.code" name="code" required /><br />
|
<input id="form-recovery-code.code" name="code" required /><br />
|
||||||
<button>Verify</button>
|
<button>Verify</button>
|
||||||
<p>{form?.message ?? ""}</p>
|
<p>{form?.message ?? ""}</p>
|
||||||
</form>
|
</form>
|
||||||
{#if data.user.registeredSecurityKey}
|
|
||||||
<a href="/reset-password/2fa/security-key">Use security keys</a>
|
|
||||||
{/if}
|
|
||||||
{#if data.user.registeredPasskey}
|
|
||||||
<a href="/reset-password/2fa/passkey">Use passkeys</a>
|
|
||||||
{/if}
|
|
||||||
{#if data.user.registeredTOTP}
|
|
||||||
<a href="/reset-password/2fa/totp">Use authenticator apps</a>
|
|
||||||
{/if}
|
|
||||||
Loading…
Reference in a new issue