diff --git a/src/app/pages/login/login.page.html b/src/app/pages/login/login.page.html
index e808beff2..a012c390d 100644
--- a/src/app/pages/login/login.page.html
+++ b/src/app/pages/login/login.page.html
@@ -27,7 +27,10 @@
Palavra-passe
-
+
+
+
+
diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts
index 42c29b4a9..1cfa6f587 100644
--- a/src/app/pages/login/login.page.ts
+++ b/src/app/pages/login/login.page.ts
@@ -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: ""
}
diff --git a/src/app/services/chat/ws-chat-methods.service.ts b/src/app/services/chat/ws-chat-methods.service.ts
index 95b11a1f9..e462da016 100644
--- a/src/app/services/chat/ws-chat-methods.service.ts
+++ b/src/app/services/chat/ws-chat-methods.service.ts
@@ -338,6 +338,7 @@ export class WsChatMethodsService {
this.dm[roomId] = room
this._dm.push(room)
+ console.log(this._dm)
this.dmCount++
} else {
diff --git a/src/app/shared/chat/messages/messages.page.ts b/src/app/shared/chat/messages/messages.page.ts
index 800e543d2..af2f57df8 100644
--- a/src/app/shared/chat/messages/messages.page.ts
+++ b/src/app/shared/chat/messages/messages.page.ts
@@ -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({