mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
save
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user