diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts index c9a32582c..302f8d8d3 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login/login.page.ts @@ -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