debugging reset/forgot password
This commit is contained in:
@@ -3,7 +3,7 @@ import type { MailService } from '@sendgrid/mail';
|
|||||||
import { SENDGRID_API_KEY } from '$env/static/private';
|
import { SENDGRID_API_KEY } from '$env/static/private';
|
||||||
|
|
||||||
export const SENDGRID_FROM = 'Rotimi Best <[email protected]>';
|
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;
|
export let sendgrid: MailService;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
try {
|
try {
|
||||||
loading = true;
|
loading = true;
|
||||||
const { data, error } = await supabase.auth.resetPasswordForEmail(fields.email, {
|
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);
|
console.log('data', data);
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
|
|||||||
@@ -141,15 +141,7 @@
|
|||||||
<title>Join ClassroomIO</title>
|
<title>Join ClassroomIO</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<AuthUI
|
<AuthUI {supabase} isLogin={false} {handleSubmit} isLoading={loading} showLogo={true} bind:formRef>
|
||||||
{supabase}
|
|
||||||
isLogin={false}
|
|
||||||
{handleSubmit}
|
|
||||||
isLoading={loading}
|
|
||||||
showOnlyContent={true}
|
|
||||||
showLogo={true}
|
|
||||||
bind:formRef
|
|
||||||
>
|
|
||||||
<div class="mt-4 w-full">
|
<div class="mt-4 w-full">
|
||||||
<p class="dark:text-white text-lg font-semibold mb-6">
|
<p class="dark:text-white text-lg font-semibold mb-6">
|
||||||
{#if data.profile}
|
{#if data.profile}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
loading = true;
|
loading = true;
|
||||||
const { data, error } = await supabase.auth.update({
|
const { data, error } = await supabase.auth.updateUser({
|
||||||
password: fields.password
|
password: fields.password
|
||||||
});
|
});
|
||||||
console.log('data', data);
|
console.log('data', data);
|
||||||
|
|||||||
Reference in New Issue
Block a user