This commit is contained in:
tiago.kayaya
2021-01-15 15:25:13 +01:00
parent 092557b21e
commit 7e18af8233
4 changed files with 10 additions and 33 deletions
+3 -4
View File
@@ -67,7 +67,7 @@ export class LoginPage implements OnInit {
async Login(){
try {
/* try { */
//Go to our home in home/feed.
//this.router.navigate(['/home/events']);
if(this.validateInput()){
@@ -79,7 +79,6 @@ export class LoginPage implements OnInit {
}
if (await this.authService.login(this.userattempt)){
this.loginRocketChat();
console.log('Log Gabinete Digital OK');
this.router.navigate(['/home/events']);this.presentAlert('1');
}
else
@@ -92,9 +91,9 @@ export class LoginPage implements OnInit {
//this.toastService.presentToast('Preencha todos campos');
this.presentAlert('Por favor, insira o seu nome de utilizador e palavra-passe.');
}
} catch (error) {
/* } catch (error) {
error
this.presentAlert('Ocorreu um erro ao fazer login. Contacte o administrador de sistema. '+ error);
}
} */
}
}