mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Eye icon added to login password and trim added to email field
This commit is contained in:
@@ -18,6 +18,6 @@
|
||||
}
|
||||
},
|
||||
"server": {
|
||||
"url": "http://192.168.0.62:8101"
|
||||
"url": "http://192.168.0.50:8101"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,10 @@
|
||||
</ion-item>
|
||||
<p class="form-label">Palavra-passe</p>
|
||||
<ion-item class="form-input">
|
||||
<ion-input (keyup.enter)="Login()" type="password" [(ngModel)]="password" name="input-password" ></ion-input>
|
||||
<ion-input (keyup.enter)="Login()" [type]="showPassword ? 'text' : 'password' " [(ngModel)]="password" name="input-password" ></ion-input>
|
||||
<div (click)="togglePassword()">
|
||||
<ion-icon slot="end" [name]="passwordIcon" ></ion-icon>
|
||||
</div>
|
||||
</ion-item>
|
||||
<div class="d-flex pt-25">
|
||||
<button class="btn-ok btn-login" fill="clear" expand="block" shape="round" (click)="Login()">Iniciar a sessão</button>
|
||||
|
||||
@@ -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: ""
|
||||
}
|
||||
|
||||
@@ -338,6 +338,7 @@ export class WsChatMethodsService {
|
||||
|
||||
this.dm[roomId] = room
|
||||
this._dm.push(room)
|
||||
console.log(this._dm)
|
||||
this.dmCount++
|
||||
|
||||
} else {
|
||||
|
||||
@@ -631,6 +631,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
||||
|
||||
|
||||
async takePictureMobile() {
|
||||
console.log('take picture')
|
||||
const roomId = this.roomId
|
||||
|
||||
const file = await Camera.getPhoto({
|
||||
|
||||
Reference in New Issue
Block a user