diff --git a/src/routes/(admin)/account/(menu)/settings/change_password/+page.svelte b/src/routes/(admin)/account/(menu)/settings/change_password/+page.svelte index ba3dcdea..11c3741f 100644 --- a/src/routes/(admin)/account/(menu)/settings/change_password/+page.svelte +++ b/src/routes/(admin)/account/(menu)/settings/change_password/+page.svelte @@ -10,10 +10,16 @@ export let data let { session, supabase } = data + // True if definitely has a password, but can be false if they + // logged in with oAuth or email link let hasPassword = session?.user?.amr?.find((x) => x.method === "password") ? true : false + let usingOAuth = session?.user?.amr?.find((x) => x.method === "oauth") + ? true + : false + let sendBtn: HTMLButtonElement let sentEmail = false let sendForgotPassword = () => { @@ -36,7 +42,7 @@