POST /auth/forgot-password
向用户发送密码重置邮件。此为公开接口,无需认证。
请求体
请求是否被接受。出于安全考虑,即使系统中不存在该邮箱,也会返回 true。
curl -X POST https://api.llmgenerator.com/api/v1/auth/forgot-password \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com"
}'
{
"success": true,
"message": "If an account with that email exists, a password reset link has been sent."
}