Email + password login scheme set up, mailgun sending set up.

This commit is contained in:
2026-04-02 14:29:56 -05:00
parent d3021014ed
commit f13035f8c5
10 changed files with 241 additions and 41 deletions

View File

@@ -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`,
});