LP1977554 - Add Password visibility toggle on login screens
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / login.component.ts
index 50ec9c6..02d6580 100644 (file)
@@ -15,6 +15,7 @@ export class StaffLoginComponent implements OnInit {
     loginFailed: boolean;
     routeTo: string;
     pendingXactsDate: Date;
+    passwordVisible: boolean;
 
     args = {
       username : '',
@@ -118,6 +119,11 @@ export class StaffLoginComponent implements OnInit {
             }
         );
     }
+
+    togglePasswordVisibility() {
+        this.passwordVisible = !this.passwordVisible;
+    }
+
 }