Skip to content

Commit 83045bb

Browse files
committed
Fix forgot password: add redirectTo reset-password.html
1 parent a43ff70 commit 83045bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

auth/forgot-password.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h2>Forgot Password?</h2>
6969
const res = await fetch('https://cvkxtsvgnynxexmemfuy.supabase.co/auth/v1/recover', {
7070
method: 'POST',
7171
headers: { 'Content-Type': 'application/json', 'apikey': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImN2a3h0c3ZnbnlueGV4bWVtZnV5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njc0MjE2NTEsImV4cCI6MjA4Mjk5NzY1MX0.2mys8Cc-ucJ1uLThEGJubeDEg1TvfIAkW-xFsR4ecq4' },
72-
body: JSON.stringify({ email })
72+
body: JSON.stringify({ email, gotrue_meta_security: {}, redirect_to: "https://simpaticohr.in/auth/reset-password.html" })
7373
});
7474
box.className = 'alert alert-success';
7575
box.textContent = 'If this email is registered, you will receive a reset link shortly.';

0 commit comments

Comments
 (0)