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:
Vendored
+1
-1
@@ -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('حساب کاربری شما غیرفعال است');
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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('حساب کاربری شما غیرفعال است');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user