This commit is contained in:
tiago.kayaya
2021-01-25 16:49:57 +01:00
parent 7e111c252b
commit c1494c70a7
+3 -6
View File
@@ -55,17 +55,14 @@ export class LoginPage implements OnInit {
await alert.present();
}
/* loginRocketChat(){
loginRocketChat(){
this.authService.loginChat(this.postData).subscribe((res: any) =>{
this.storageService.store(AuthConnstants.AUTH, res.data);
console.log('Login to Rocket chat OK');
this.presentAlert('Login to Rocket chat OK');
},(error:any) =>{
console.log('Network error');
this.presentAlert('Network error '+error);
});
} */
}
@@ -81,7 +78,7 @@ export class LoginPage implements OnInit {
BasicAuthKey: ""
}
if (await this.authService.login(this.userattempt)){
/* this.loginRocketChat(); */
this.loginRocketChat();
this.router.navigate(['/home/events']);
}
else