mirror of
https://github.com/BradNut/example-sveltekit-email-password-webauthn
synced 2025-09-08 17:40:27 +00:00
fix redirect
This commit is contained in:
parent
7df26ea7a8
commit
06282d4c85
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ import type { Actions, RequestEvent } from "./$types";
|
|||
|
||||
export async function load(event: RequestEvent) {
|
||||
if (event.locals.user === null) {
|
||||
return redirect(302, "/redirect");
|
||||
return redirect(302, "/login");
|
||||
}
|
||||
let verificationRequest = getUserEmailVerificationRequestFromRequest(event);
|
||||
if (verificationRequest === null || Date.now() >= verificationRequest.expiresAt.getTime()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue