added reset password workflow

This commit is contained in:
Milo Schwartz
2024-10-05 17:01:49 -04:00
parent 838047bb4c
commit 7d66a6ff66
12 changed files with 278 additions and 29 deletions

View File

@@ -90,6 +90,8 @@ export async function disable2fa(
.delete(twoFactorBackupCodes)
.where(eq(twoFactorBackupCodes.userId, user.id));
// TODO: send email to user confirming two-factor authentication is disabled
return response<null>(res, {
data: null,
success: true,