Improve login to rocket chat

This commit is contained in:
Peter Maquiran
2022-01-10 10:53:04 +01:00
parent 402e1f8a95
commit 9e11d910d4
3 changed files with 31 additions and 6 deletions
+7 -1
View File
@@ -99,11 +99,17 @@ export class HomePage implements OnInit {
private RouteService: RouteService) {
this.RocketChatClientService.connect(()=>{
this.RocketChatClientService.login({
username: 'paulo.pinto',
email: 'paulo.pinto@gabinetedigital.local',
password: 'tabteste@006'
})
}).then((message)=>{
console.log('rocket chat login successfully', message)
}).catch((message)=>{
console.log('rocket chat login failed', message)
}).finally(()=>{
})
})