Skip to content

Commit 169e962

Browse files
committed
hotfix: mask sensitive fields
1 parent defd227 commit 169e962

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/app/pages/landing-page/login/login.component.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ <h1 style="color: gray">Bienvenue au Labo Sharp</h1>
44
<form [formGroup]="loginForm" (ngSubmit)="onSubmit()">
55
<mat-form-field appearance="outline" class="pt-1" floatLabel="always">
66
<mat-label>EMAIL / COURRIEL</mat-label>
7-
<input matInput formControlName="email" type="email" placeholder="[email protected]" email required />
7+
<input
8+
class="mask-sensitive"
9+
matInput
10+
formControlName="email"
11+
type="email"
12+
placeholder="[email protected]"
13+
email
14+
required
15+
/>
816
<mat-error *ngIf="loginForm.get('email')?.hasError('required')"
917
>This is required / Ceci est requis</mat-error
1018
>
@@ -18,6 +26,7 @@ <h1 style="color: gray">Bienvenue au Labo Sharp</h1>
1826
passwordIsVisible ? 'visibility' : 'visibility_off'
1927
}}</mat-icon>
2028
<input
29+
class="mask-sensitive"
2130
type="text"
2231
required
2332
formControlName="password"

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if (environment.production) {
1111
integrations: [
1212
replayIntegration({
1313
maskAllText: false,
14+
mask: ['.mask-sensitive'],
1415
blockAllMedia: false,
1516
}),
1617
browserTracingIntegration(),

0 commit comments

Comments
 (0)