Email + password login scheme set up, mailgun sending set up.
This commit is contained in:
@@ -3,7 +3,7 @@ import { Button } from '../ui/button';
|
||||
import { Card, CardContent } from '../ui/card';
|
||||
import { Input } from '../ui/input';
|
||||
import { Label } from '../ui/label';
|
||||
import { forgetPassword } from '../../lib/auth-client';
|
||||
import { requestPasswordReset } from '../../lib/auth-client';
|
||||
import { ArrowLeft } from 'lucide-react';
|
||||
|
||||
const logo = '/logo.png';
|
||||
@@ -22,7 +22,7 @@ export function ForgotPassword({ onBack }: Props) {
|
||||
e.preventDefault();
|
||||
setError('');
|
||||
setLoading(true);
|
||||
const res = await forgetPassword({
|
||||
const res = await requestPasswordReset({
|
||||
email,
|
||||
redirectTo: `${window.location.origin}/reset-password`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user