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) {
|
||||
return redirect(302, "/reset-password");
|
||||
}
|
||||
return {
|
||||
user
|
||||
};
|
||||
return {};
|
||||
}
|
||||
|
||||
export const actions: Actions = {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
<script lang="ts">
|
||||
import { enhance } from "$app/forms";
|
||||
|
||||
import type { ActionData, PageData } from "./$types";
|
||||
import type { ActionData } from "./$types";
|
||||
|
||||
export let data: PageData;
|
||||
export let form: ActionData;
|
||||
</script>
|
||||
|
||||
|
|
@ -14,12 +13,3 @@
|
|||
<button>Verify</button>
|
||||
<p>{form?.message ?? ""}</p>
|
||||
</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