fix architecture and write new tests
This commit is contained in:
@@ -19,6 +19,7 @@ export default function AdminForgotPasswordPage() {
|
||||
const res = await fetch(`${ADMIN_API_BASE}/admin/auth/forgot-password`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
credentials: 'include',
|
||||
body: JSON.stringify({ email }),
|
||||
})
|
||||
if (!res.ok) throw new Error()
|
||||
|
||||
Reference in New Issue
Block a user