This commit is contained in:
tiago.kayaya
2021-02-24 16:39:11 +01:00
parent fe2f3bccad
commit 5b0e22e427
6 changed files with 98 additions and 41 deletions
+4 -1
View File
@@ -11,6 +11,7 @@ import { PhotoService } from 'src/app/services/photo.service';
import { NotificationsService } from 'src/app/services/notifications.service';
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Token } from '../../models/token.model';
import { AlertService } from 'src/app/services/alert.service';
/* import { Plugins, PushNotification, PushNotificationToken, PushNotificationActionPerformed } from '@capacitor/core';
@@ -38,7 +39,8 @@ export class LoginPage implements OnInit {
private storageService: StorageService,
private toastService: ToastService,
private photoService: PhotoService,
public alertController: AlertController) { }
public alertController: AlertController,
private alertService: AlertService,) { }
ngOnInit() {
@@ -124,6 +126,7 @@ export class LoginPage implements OnInit {
BasicAuthKey: ""
}
if (await this.authService.login(this.userattempt)) {
this.alertService.presentAlert('5');
this.loginRocketChat();
//this.storeUserIdANdToken();