fix
This commit is contained in:
@@ -40,7 +40,7 @@ export class MermsLoginPage implements OnInit {
|
|||||||
public navCtrl: NavController,
|
public navCtrl: NavController,
|
||||||
private alertCtrl: AlertController,
|
private alertCtrl: AlertController,
|
||||||
private loadingCtrl: LoadingController,
|
private loadingCtrl: LoadingController,
|
||||||
/* private mermsServiceProviderService :MermsServiceProviderService,*/
|
private mermsServiceProviderService: MermsServiceProviderService,
|
||||||
private mermsSessionService: MermsSessionService,
|
private mermsSessionService: MermsSessionService,
|
||||||
private router: Router
|
private router: Router
|
||||||
) { }
|
) { }
|
||||||
@@ -48,6 +48,8 @@ export class MermsLoginPage implements OnInit {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
userLoginData: any;
|
||||||
|
|
||||||
|
|
||||||
async loginAccount() {
|
async loginAccount() {
|
||||||
|
|
||||||
@@ -86,6 +88,23 @@ export class MermsLoginPage implements OnInit {
|
|||||||
password: this.password,
|
password: this.password,
|
||||||
sessionid: 'DUMMYSESSION',
|
sessionid: 'DUMMYSESSION',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
this.mermsServiceProviderService.genericGetService('provider/loginuser', this.loginData).subscribe(userLoginData => {
|
||||||
|
console.log("card data result 22k: ", userLoginData[0]['payload']);
|
||||||
|
this.userLoginData = userLoginData[0]['payload'];
|
||||||
|
if (userLoginData.hasOwnProperty('payload') && Array.isArray(userLoginData['payload'])) {
|
||||||
|
this.userLoginData = userLoginData['payload'];
|
||||||
|
console.log("card data result 22k: ", this.userLoginData);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.StoredloginData = {
|
this.StoredloginData = {
|
||||||
username: this.username,
|
username: this.username,
|
||||||
password: this.password,
|
password: this.password,
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export class MermsServiceProviderService {
|
|||||||
|
|
||||||
constructor(public http: HttpClient,
|
constructor(public http: HttpClient,
|
||||||
private mermsSessionService: MermsSessionService) {
|
private mermsSessionService: MermsSessionService) {
|
||||||
this.url="http://api.dev.mermsemr.com"
|
this.url="http://api.dev.mermsemr.com";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user