mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Eye icon added to login password and trim added to email field
This commit is contained in:
@@ -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: ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user