From a227704d416c64cc94545fd0ff3073f705f4f8e5 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Fri, 19 Apr 2024 16:06:34 -0400 Subject: [PATCH] unmask all inputs except for passwords for posthog --- frontend/src/components/hosted/AppContainer.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/hosted/AppContainer.tsx b/frontend/src/components/hosted/AppContainer.tsx index 5cf0b69..20b11a3 100644 --- a/frontend/src/components/hosted/AppContainer.tsx +++ b/frontend/src/components/hosted/AppContainer.tsx @@ -42,7 +42,16 @@ function AppContainer() { setSubscriberTier("free"); } else { // Initialize PostHog only for paid users - posthog.init(POSTHOG_KEY, { api_host: POSTHOG_HOST }); + // and unmask all inputs except for passwords + posthog.init(POSTHOG_KEY, { + api_host: POSTHOG_HOST, + session_recording: { + maskAllInputs: false, + maskInputOptions: { + password: true, + }, + }, + }); // Identify the user to PostHog posthog.identify(user.email, { email: user.email,