Explorar o código

Redact SMS codes from refresh-booking log output

ZiB hai 4 meses
pai
achega
d6d1df8fba
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      room_cal/service_api/typescript/booking/refresh-cookies.ts

+ 2 - 2
room_cal/service_api/typescript/booking/refresh-cookies.ts

@@ -149,7 +149,7 @@ async function handleAuthAssurance(page: Page, masked: string): Promise<void> {
     return;
   }
 
-  console.error(`[booking] Filling code ${code}`);
+  console.error('[booking] Filling code');
   await pinInput.fill(code);
   await page.keyboard.press('Enter');
 }
@@ -185,7 +185,7 @@ async function handleMessaging2FA(page: Page, masked: string): Promise<void> {
   const code = await fetchSmsCode(120);
   if (!code) throw new Error('[booking] No SMS code received for messaging 2FA within timeout');
 
-  console.error(`[booking] Filling messaging code ${code}`);
+  console.error('[booking] Filling messaging code');
   await pinInput.fill(code);
   await page.keyboard.press('Enter');
 }