Eye icon added to login password and trim added to email field

This commit is contained in:
Eudes Inácio
2022-05-02 16:19:59 +01:00
parent 07e15647c6
commit 71ddea9211
6 changed files with 25 additions and 6 deletions
+16 -2
View File
@@ -32,6 +32,8 @@ export class LoginPage implements OnInit {
sessionStore = SessionStore;
permissionList = new PermissionList();
showPassword = false;
passwordIcon = "eye";
constructor(
private notificatinsservice: NotificationsService,
@@ -53,6 +55,18 @@ export class LoginPage implements OnInit {
})
}
togglePassword() {
this.showPassword = !this.showPassword;
if(this.passwordIcon == "eye") {
this.passwordIcon = "eye-off";
} else {
this.passwordIcon = "eye";
}
}
//Function to validade the login inputs
validateUsername() {
return (
@@ -89,8 +103,8 @@ export class LoginPage implements OnInit {
if(this.validatePassword()) {
this.userattempt = {
username: this.username,
password: this.password,
username: this.username.trim(),
password: this.password.trim(),
domainName: environment.domain,
BasicAuthKey: ""
}