X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Flogin%2FLoginComponent.ts;h=92fe3c346af959ba61e93d572934bfab27b8cf09;hb=refs%2Fheads%2Fmaster;hp=53f6f98838de3541afb3a7f9f3e4e6724155252c;hpb=c6c72e359f949e7595f3e7594d5d811ee7fd9d39;p=osm%2FNG-UI.git diff --git a/src/app/login/LoginComponent.ts b/src/app/login/LoginComponent.ts index 53f6f98..92fe3c3 100644 --- a/src/app/login/LoginComponent.ts +++ b/src/app/login/LoginComponent.ts @@ -19,7 +19,6 @@ /** * @file Page for Login component */ -import { isNullOrUndefined } from 'util'; import { HttpErrorResponse } from '@angular/common/http'; import { Component, Injector, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; @@ -31,7 +30,7 @@ import { environment } from 'environment'; import { ToastrService } from 'ngx-toastr'; import { RestService } from 'RestService'; import { Observable } from 'rxjs'; -import { SharedService } from 'SharedService'; +import { SharedService, isNullOrUndefined } from 'SharedService'; import { UserDetail } from 'UserModel'; /** @@ -126,6 +125,9 @@ export class LoginComponent implements OnInit { /** contains the passwordIn observable value @public */ public changePassword: boolean; + /** To show the visiblity of password @public */ + public visiblePassword: boolean; + /** Utilizes auth service for any auth operations @private */ private authService: AuthenticationService; @@ -284,6 +286,11 @@ export class LoginComponent implements OnInit { } } + /** To Show or Hide the Password @public */ + public onShowPassword(): void { + this.visiblePassword = !this.visiblePassword; + } + /** To display password expiry Toaster with required data @public */ public passwordExpiryToaster(): void { if ((this.accountNoOfDays === '1' && this.passwordNoOfDays === '1') ||