feat(auth): add password reset flow with OTP
- Add password-reset Prisma schema for OTP tracking - Add API contract schemas (start, verify, resend) - Add password-reset service with OTP validation and email sending - Add frontend reset-password page with 2-step flow - Add InputOTP component usage for OTP input - Add link to reset-password in login page - Remove link to About in login - Center and resize login/reset password forms
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { startPasswordReset } from '@/modules/password-reset/services/password-reset.service';
|
||||
import type { AppContext } from '@/types/hono';
|
||||
import type { PasswordResetStartInput } from '@repo/api-contract';
|
||||
|
||||
export async function startPasswordResetHandler(c: AppContext) {
|
||||
const payload = c.req.valid('json' as never) as PasswordResetStartInput;
|
||||
|
||||
const result = await startPasswordReset(payload);
|
||||
return c.json(result, 202);
|
||||
}
|
||||
Reference in New Issue
Block a user