debugging reset/forgot password

This commit is contained in:
Rotimi Best
2023-09-17 02:33:29 +01:00
parent b5b0dbf792
commit 00f3e55ce9
4 changed files with 4 additions and 12 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import type { MailService } from '@sendgrid/mail';
import { SENDGRID_API_KEY } from '$env/static/private';
export const SENDGRID_FROM = 'Rotimi Best <[email protected]>';
export const SENDGRID_FROM_NOREPLY = 'ClassroomIO <noreply@classroomio.com>';
export const SENDGRID_FROM_NOREPLY = 'ClassroomIO <help@classroomio.com>';
export let sendgrid: MailService;
+1 -1
View File
@@ -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;
+1 -9
View File
@@ -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}
+1 -1
View File
@@ -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);