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": {
|
"server": {
|
||||||
"url": "http://192.168.0.62:8101"
|
"url": "http://192.168.0.50:8101"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,10 @@
|
|||||||
</ion-item>
|
</ion-item>
|
||||||
<p class="form-label">Palavra-passe</p>
|
<p class="form-label">Palavra-passe</p>
|
||||||
<ion-item class="form-input">
|
<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>
|
</ion-item>
|
||||||
<div class="d-flex pt-25">
|
<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>
|
<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;
|
sessionStore = SessionStore;
|
||||||
permissionList = new PermissionList();
|
permissionList = new PermissionList();
|
||||||
|
showPassword = false;
|
||||||
|
passwordIcon = "eye";
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private notificatinsservice: NotificationsService,
|
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
|
//Function to validade the login inputs
|
||||||
validateUsername() {
|
validateUsername() {
|
||||||
return (
|
return (
|
||||||
@@ -89,8 +103,8 @@ export class LoginPage implements OnInit {
|
|||||||
if(this.validatePassword()) {
|
if(this.validatePassword()) {
|
||||||
|
|
||||||
this.userattempt = {
|
this.userattempt = {
|
||||||
username: this.username,
|
username: this.username.trim(),
|
||||||
password: this.password,
|
password: this.password.trim(),
|
||||||
domainName: environment.domain,
|
domainName: environment.domain,
|
||||||
BasicAuthKey: ""
|
BasicAuthKey: ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -338,6 +338,7 @@ export class WsChatMethodsService {
|
|||||||
|
|
||||||
this.dm[roomId] = room
|
this.dm[roomId] = room
|
||||||
this._dm.push(room)
|
this._dm.push(room)
|
||||||
|
console.log(this._dm)
|
||||||
this.dmCount++
|
this.dmCount++
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -631,6 +631,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
|
|||||||
|
|
||||||
|
|
||||||
async takePictureMobile() {
|
async takePictureMobile() {
|
||||||
|
console.log('take picture')
|
||||||
const roomId = this.roomId
|
const roomId = this.roomId
|
||||||
|
|
||||||
const file = await Camera.getPhoto({
|
const file = await Camera.getPhoto({
|
||||||
|
|||||||
Reference in New Issue
Block a user