This commit is contained in:
tiago.kayaya
2021-01-20 10:23:59 +01:00
parent 874133d28e
commit 38765d4da9
99 changed files with 2696 additions and 18069 deletions
@@ -124,9 +124,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
/* harmony import */ var src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/services/storage.service */ "./src/app/services/storage.service.ts");
/* harmony import */ var src_app_config_auth_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/config/auth-constants */ "./src/app/config/auth-constants.ts");
/* harmony import */ var src_app_services_photo_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/services/photo.service */ "./src/app/services/photo.service.ts");
/* harmony import */ var src_app_services_photo_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/services/photo.service */ "./src/app/services/photo.service.ts");
@@ -167,14 +165,14 @@ let LoginPage = class LoginPage {
yield alert.present();
});
}
loginRocketChat() {
this.authService.loginChat(this.postData).subscribe((res) => {
this.storageService.store(src_app_config_auth_constants__WEBPACK_IMPORTED_MODULE_8__["AuthConnstants"].AUTH, res.data);
console.log('Login to Rocket chat OK');
}, (error) => {
console.log('Network error');
});
}
/* loginRocketChat(){
this.authService.loginChat(this.postData).subscribe((res: any) =>{
this.storageService.store(AuthConnstants.AUTH, res.data);
console.log('Login to Rocket chat OK');
},(error:any) =>{
console.log('Network error');
});
} */
Login() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
/* try { */
@@ -188,7 +186,7 @@ let LoginPage = class LoginPage {
BasicAuthKey: ""
};
if (yield this.authService.login(this.userattempt)) {
this.loginRocketChat();
/* this.loginRocketChat(); */
this.router.navigate(['/home/events']);
}
else {
@@ -212,7 +210,7 @@ LoginPage.ctorParameters = () => [
{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] },
{ type: src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] },
{ type: src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_4__["ToastService"] },
{ type: src_app_services_photo_service__WEBPACK_IMPORTED_MODULE_9__["PhotoService"] },
{ type: src_app_services_photo_service__WEBPACK_IMPORTED_MODULE_8__["PhotoService"] },
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["AlertController"] }
];
LoginPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([