mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
save
This commit is contained in:
@@ -55,17 +55,14 @@ export class LoginPage implements OnInit {
|
|||||||
await alert.present();
|
await alert.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* loginRocketChat(){
|
loginRocketChat(){
|
||||||
this.authService.loginChat(this.postData).subscribe((res: any) =>{
|
this.authService.loginChat(this.postData).subscribe((res: any) =>{
|
||||||
this.storageService.store(AuthConnstants.AUTH, res.data);
|
this.storageService.store(AuthConnstants.AUTH, res.data);
|
||||||
console.log('Login to Rocket chat OK');
|
console.log('Login to Rocket chat OK');
|
||||||
this.presentAlert('Login to Rocket chat OK');
|
|
||||||
|
|
||||||
},(error:any) =>{
|
},(error:any) =>{
|
||||||
console.log('Network error');
|
console.log('Network error');
|
||||||
this.presentAlert('Network error '+error);
|
|
||||||
});
|
});
|
||||||
} */
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -81,7 +78,7 @@ export class LoginPage implements OnInit {
|
|||||||
BasicAuthKey: ""
|
BasicAuthKey: ""
|
||||||
}
|
}
|
||||||
if (await this.authService.login(this.userattempt)){
|
if (await this.authService.login(this.userattempt)){
|
||||||
/* this.loginRocketChat(); */
|
this.loginRocketChat();
|
||||||
this.router.navigate(['/home/events']);
|
this.router.navigate(['/home/events']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user