From a665fb73baffdd8113bae89f68b1f09cea740df6 Mon Sep 17 00:00:00 2001 From: lfleischmann <67686424+lfleischmann@users.noreply.github.com> Date: Tue, 30 May 2023 16:44:11 +0200 Subject: [PATCH] fix(quickstart): redirect to login after account deletion --- quickstart/public/html/secured.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickstart/public/html/secured.html b/quickstart/public/html/secured.html index dd0c7cffc..3545c2023 100644 --- a/quickstart/public/html/secured.html +++ b/quickstart/public/html/secured.html @@ -42,6 +42,8 @@

My Profile

const { hanko } = await register("{{.HankoUrl}}", { shadow: false }); + hanko.onUserDeleted(() => window.location.href = "/" ); + document.getElementById("logout-link") .addEventListener("click", (event) => { event.preventDefault();