aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/login/login.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/components/login/login.component.ts')
-rw-r--r--src/app/components/login/login.component.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/components/login/login.component.ts b/src/app/components/login/login.component.ts
index edbc461..a0ce730 100644
--- a/src/app/components/login/login.component.ts
+++ b/src/app/components/login/login.component.ts
@@ -16,6 +16,7 @@ export class LoginComponent implements OnInit {
@ViewChild(ErrorBarComponent) private _errorBar: ErrorBarComponent;
private _title = 'Login';
public loginUserFormGroup: FormGroup;
+ public showingPassword = false;
constructor(private _titleService: Title, private _fb: FormBuilder, private _router: Router, private _userService: UserService, private _tokenService: TokenService) {
this._titleService.setTitle(this._title);
@@ -32,6 +33,10 @@ export class LoginComponent implements OnInit {
});
}
+ toggleShowPassword(): void {
+ this.showingPassword = !this.showingPassword;
+ }
+
onSubmit(): void {
this._errorBar.hideError();
this._userService.loginUserRequest(this.loginUserFormGroup).subscribe({