debugging reset/forgot password
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
try {
|
||||
loading = true;
|
||||
const { data, error } = await supabase.auth.resetPasswordForEmail(fields.email, {
|
||||
redirectTo: window.location.origin + ROUTE.RESET
|
||||
redirectTo: 'https://app.classroomio.com/reset'
|
||||
});
|
||||
console.log('data', data);
|
||||
if (error) throw error;
|
||||
|
||||
@@ -141,15 +141,7 @@
|
||||
<title>Join ClassroomIO</title>
|
||||
</svelte:head>
|
||||
|
||||
<AuthUI
|
||||
{supabase}
|
||||
isLogin={false}
|
||||
{handleSubmit}
|
||||
isLoading={loading}
|
||||
showOnlyContent={true}
|
||||
showLogo={true}
|
||||
bind:formRef
|
||||
>
|
||||
<AuthUI {supabase} isLogin={false} {handleSubmit} isLoading={loading} showLogo={true} bind:formRef>
|
||||
<div class="mt-4 w-full">
|
||||
<p class="dark:text-white text-lg font-semibold mb-6">
|
||||
{#if data.profile}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
try {
|
||||
loading = true;
|
||||
const { data, error } = await supabase.auth.update({
|
||||
const { data, error } = await supabase.auth.updateUser({
|
||||
password: fields.password
|
||||
});
|
||||
console.log('data', data);
|
||||
|
||||
Reference in New Issue
Block a user