From 39e1d0865b5ab0a3df6d61402398f512dc406183 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 24 Feb 2018 14:41:10 -0500 Subject: [PATCH] fix lint issue --- src/app/accounts/register.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/accounts/register.component.ts b/src/app/accounts/register.component.ts index f282ccddfb..df303364a8 100644 --- a/src/app/accounts/register.component.ts +++ b/src/app/accounts/register.component.ts @@ -65,6 +65,12 @@ export class RegisterComponent { } catch { } } + togglePassword(confirmField: boolean) { + this.analytics.eventTrack.next({ action: 'Toggled Master Password on Register' }); + this.showPassword = !this.showPassword; + document.getElementById(confirmField ? 'masterPasswordRetype' : 'masterPassword').focus(); + } + private async register() { this.email = this.email.toLowerCase(); const key = this.cryptoService.makeKey(this.masterPassword, this.email); @@ -73,10 +79,4 @@ 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(); - } }