Clarify login OTP message when phone is not registered

Tell the user no account exists and to register, instead of a bare
"user not found" string on the login OTP request path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-08 16:49:39 +03:30
co-authored by Cursor
parent d5dfd6a0f0
commit 06e5f48d07
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ let AuthService = class AuthService {
}
}
else if (!existing) {
throw new common_1.BadRequestException('کاربری با این شماره یافت نشد');
throw new common_1.BadRequestException('کاربری با این مشخصات وجود ندارد؛ لطفاً ثبت‌نام کنید');
}
else if (!existing.isActive) {
throw new common_1.UnauthorizedException('حساب کاربری شما غیرفعال است');
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -52,7 +52,9 @@ export class AuthService {
throw new BadRequestException('این شماره قبلاً ثبت شده است');
}
} else if (!existing) {
throw new BadRequestException('کاربری با این شماره یافت نشد');
throw new BadRequestException(
'کاربری با این مشخصات وجود ندارد؛ لطفاً ثبت‌نام کنید',
);
} else if (!existing.isActive) {
throw new UnauthorizedException('حساب کاربری شما غیرفعال است');
}