Add SMS OTP, harden auth, and fix order/checkout server bugs.

Ship 4-digit OTP with rate-limit attempts, Tehran-safe expiry/rass math, larger JSON body limit for check images, and safer order pricing/status guards. Include rebuilt dist for prebuilt deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-08 14:55:26 +03:30
co-authored by Cursor
parent b121797263
commit 345a4a4708
100 changed files with 1476 additions and 353 deletions
+4 -2
View File
@@ -86,7 +86,8 @@ let AdminUsersService = class AdminUsersService {
return this.map(user);
}
catch (e) {
if (e instanceof client_1.Prisma.PrismaClientKnownRequestError && e.code === 'P2002') {
if (e instanceof client_1.Prisma.PrismaClientKnownRequestError &&
e.code === 'P2002') {
throw new common_1.ConflictException('شماره یا ایمیل تکراری است');
}
throw e;
@@ -118,7 +119,8 @@ let AdminUsersService = class AdminUsersService {
return this.map(user);
}
catch (e) {
if (e instanceof client_1.Prisma.PrismaClientKnownRequestError && e.code === 'P2002') {
if (e instanceof client_1.Prisma.PrismaClientKnownRequestError &&
e.code === 'P2002') {
throw new common_1.ConflictException('شماره یا ایمیل تکراری است');
}
throw e;