+
+
+
+
+
diff --git a/src/app/accounts/register.component.ts b/src/app/accounts/register.component.ts
index f55dadf4e9..f282ccddfb 100644
--- a/src/app/accounts/register.component.ts
+++ b/src/app/accounts/register.component.ts
@@ -22,6 +22,7 @@ export class RegisterComponent {
masterPassword: string = '';
confirmMasterPassword: string = '';
hint: string = '';
+ showPassword: boolean = false;
formPromise: Promise
;
constructor(private authService: AuthService, private router: Router, private analytics: Angulartics2,
@@ -72,4 +73,10 @@ export class RegisterComponent {
const request = new RegisterRequest(this.email, hashedPassword, this.hint, encKey.encryptedString);
await this.apiService.postRegister(request);
}
+
+ togglePassword(confirmField: boolean) {
+ this.analytics.eventTrack.next({ action: 'Toggled Master Password on Register' });
+ this.showPassword = !this.showPassword;
+ document.getElementById(confirmField ? 'masterPasswordRetype' : 'masterPassword').focus();
+ }
}
diff --git a/src/scss/pages.scss b/src/scss/pages.scss
index 0a935a95c6..a072211337 100644
--- a/src/scss/pages.scss
+++ b/src/scss/pages.scss
@@ -110,3 +110,9 @@
}
}
}
+
+#register-page {
+ .content {
+ width: 400px;
+ }
+}