Skip to content

Commit 69579ce

Browse files
committed
ui fixes, backend fixes and optimizations and 2FA using email verification
1 parent 1356115 commit 69579ce

33 files changed

Lines changed: 1869 additions & 727 deletions

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,45 @@ Response 200:
441441
"email": "user@example.com"
442442
}
443443
}
444+
445+
```
446+
447+
**Response 200 (Email 2FA Required):**
448+
```json
449+
{
450+
"success": false,
451+
"require_email_2fa": true,
452+
"user_id": "507f1f77bcf86cd799439011",
453+
"message": "Please check your email for the verification code"
454+
}
455+
```
456+
457+
#### Verify Login Email 2FA
458+
```http
459+
POST /api/auth/verify-login-email-2fa
460+
Content-Type: application/json
461+
462+
{
463+
"user_id": "507f1f77bcf86cd799439011",
464+
"code": "123456"
465+
}
466+
```
467+
468+
#### Resend Login Email 2FA Code
469+
```http
470+
POST /api/auth/resend-login-email-2fa
471+
Content-Type: application/json
472+
473+
{
474+
"user_id": "507f1f77bcf86cd799439011"
475+
}
476+
477+
Response 200:
478+
{
479+
"success": true,
480+
"message": "Verification code sent.",
481+
"cooldown": 60
482+
}
444483
```
445484

446485
#### Account Recovery

0 commit comments

Comments
 (0)