feat: implement short-lived grant system for OTP verification and enhance rate limiting across authentication endpoints
This commit is contained in:
@@ -62,7 +62,7 @@ class FileValidatorService
|
||||
throw new AppException(ErrorCodes::ERR_FILE_001, null, 422);
|
||||
}
|
||||
|
||||
return $safeName;
|
||||
return bin2hex(random_bytes(16)) . '.' . $ext;
|
||||
}
|
||||
|
||||
public function detectMimeType(string $filePath): string
|
||||
|
||||
Reference in New Issue
Block a user