feat/sw-1266: mask private info in hotjar recordings
This commit is contained in:
@@ -39,7 +39,13 @@ export default async function Profile({ params }: PageArgs<LangParams>) {
|
|||||||
<Title as="h4" color="red" level="h1" textTransform="capitalize">
|
<Title as="h4" color="red" level="h1" textTransform="capitalize">
|
||||||
{intl.formatMessage({ id: "Welcome" })}
|
{intl.formatMessage({ id: "Welcome" })}
|
||||||
</Title>
|
</Title>
|
||||||
<Title as="h4" color="burgundy" level="h2" textTransform="capitalize">
|
<Title
|
||||||
|
data-hj-suppress
|
||||||
|
as="h4"
|
||||||
|
color="burgundy"
|
||||||
|
level="h2"
|
||||||
|
textTransform="capitalize"
|
||||||
|
>
|
||||||
{user.name}
|
{user.name}
|
||||||
</Title>
|
</Title>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default async function Friend({
|
|||||||
/>
|
/>
|
||||||
</header>
|
</header>
|
||||||
<div className={styles.membership}>
|
<div className={styles.membership}>
|
||||||
<Title className={styles.name} color="pale" level="h3">
|
<Title data-hj-suppress className={styles.name} color="pale" level="h3">
|
||||||
{name}
|
{name}
|
||||||
</Title>
|
</Title>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -37,10 +37,15 @@ export default function FormContent() {
|
|||||||
</Body>
|
</Body>
|
||||||
</header>
|
</header>
|
||||||
<DateSelect name="dateOfBirth" registerOptions={{ required: true }} />
|
<DateSelect name="dateOfBirth" registerOptions={{ required: true }} />
|
||||||
<Input label={`${street} 1`} name="address.streetAddress" />
|
<Input
|
||||||
<Input label={city} name="address.city" />
|
data-hj-suppress
|
||||||
|
label={`${street} 1`}
|
||||||
|
name="address.streetAddress"
|
||||||
|
/>
|
||||||
|
<Input data-hj-suppress label={city} name="address.city" />
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
<Input
|
<Input
|
||||||
|
data-hj-suppress
|
||||||
label={zipCode}
|
label={zipCode}
|
||||||
name="address.zipCode"
|
name="address.zipCode"
|
||||||
registerOptions={{ required: true }}
|
registerOptions={{ required: true }}
|
||||||
@@ -56,8 +61,9 @@ export default function FormContent() {
|
|||||||
name="email"
|
name="email"
|
||||||
registerOptions={{ required: true }}
|
registerOptions={{ required: true }}
|
||||||
type="email"
|
type="email"
|
||||||
|
data-hj-suppress
|
||||||
/>
|
/>
|
||||||
<Phone label={phoneNumber} name="phoneNumber" />
|
<Phone label={phoneNumber} name="phoneNumber" data-hj-suppress />
|
||||||
<Select
|
<Select
|
||||||
items={languageSelect}
|
items={languageSelect}
|
||||||
label={intl.formatMessage({ id: "Language" })}
|
label={intl.formatMessage({ id: "Language" })}
|
||||||
@@ -71,11 +77,17 @@ export default function FormContent() {
|
|||||||
{intl.formatMessage({ id: "Password" })}
|
{intl.formatMessage({ id: "Password" })}
|
||||||
</Body>
|
</Body>
|
||||||
</header>
|
</header>
|
||||||
<Input label={currentPassword} name="password" type="password" />
|
<Input
|
||||||
|
data-hj-suppress
|
||||||
|
label={currentPassword}
|
||||||
|
name="password"
|
||||||
|
type="password"
|
||||||
|
/>
|
||||||
{/* visibilityToggleable set to false as feature is done for signup first */}
|
{/* visibilityToggleable set to false as feature is done for signup first */}
|
||||||
{/* likely we can remove the prop altogether once signup launches */}
|
{/* likely we can remove the prop altogether once signup launches */}
|
||||||
<NewPassword visibilityToggleable={false} />
|
<NewPassword data-hj-suppress visibilityToggleable={false} />
|
||||||
<Input
|
<Input
|
||||||
|
data-hj-suppress
|
||||||
label={retypeNewPassword}
|
label={retypeNewPassword}
|
||||||
name="retypeNewPassword"
|
name="retypeNewPassword"
|
||||||
type="password"
|
type="password"
|
||||||
|
|||||||
@@ -114,7 +114,13 @@ export default function Form({ user }: EditFormProps) {
|
|||||||
<Title as="h4" color="red" level="h1" textTransform="capitalize">
|
<Title as="h4" color="red" level="h1" textTransform="capitalize">
|
||||||
{intl.formatMessage({ id: "Welcome" })}
|
{intl.formatMessage({ id: "Welcome" })}
|
||||||
</Title>
|
</Title>
|
||||||
<Title as="h4" color="burgundy" level="h2" textTransform="capitalize">
|
<Title
|
||||||
|
data-hj-suppress
|
||||||
|
as="h4"
|
||||||
|
color="burgundy"
|
||||||
|
level="h2"
|
||||||
|
textTransform="capitalize"
|
||||||
|
>
|
||||||
{user.name}
|
{user.name}
|
||||||
</Title>
|
</Title>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|||||||
@@ -9,11 +9,14 @@ export function isValidSession(session: Session | null) {
|
|||||||
console.log(`Session error: ${session.error}`)
|
console.log(`Session error: ${session.error}`)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (session.token.error) {
|
|
||||||
console.log(`Session token error: ${session.token.error}`)
|
const token = session.token
|
||||||
|
|
||||||
|
if (token?.error) {
|
||||||
|
console.log(`Session token error: ${token.error}`)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (session.token.expires_at && session.token?.expires_at < Date.now()) {
|
if (token?.expires_at && token.expires_at < Date.now()) {
|
||||||
console.log(`Session expired: ${session.token.expires_at}`)
|
console.log(`Session expired: ${session.token.expires_at}`)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user