|
|
|
|
@ -53,6 +53,7 @@ export class ConfirmLoginComponent implements OnInit {
|
|
|
|
|
public isNFCAvailable = false;
|
|
|
|
|
direction: string;
|
|
|
|
|
userInfo: any;
|
|
|
|
|
public businessInfo: object;
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
|
public ts: TranslatorService,
|
|
|
|
|
@ -367,10 +368,24 @@ export class ConfirmLoginComponent implements OnInit {
|
|
|
|
|
this.authService.checkSMS(request, () => { }, this.ts.trPK('general', 'ok'))
|
|
|
|
|
.subscribe((result: SMSCheckResponse) => {
|
|
|
|
|
if (this.cs.validResponse(result)) {
|
|
|
|
|
this.businessInfo = {
|
|
|
|
|
show_business: result.BusinessCardPrivilege,
|
|
|
|
|
name_en: result.MemberInformationList[0].EMPLOYEE_NAME_En,
|
|
|
|
|
job_en: result.MemberInformationList[0].JOB_NAME_En,
|
|
|
|
|
name_ar: result.MemberInformationList[0].EMPLOYEE_NAME_Ar,
|
|
|
|
|
job_ar: result.MemberInformationList[0].JOB_NAME_Ar,
|
|
|
|
|
mobile: result.MemberInformationList[0].MobileNumberWithZipCode,
|
|
|
|
|
qr: result.MemberInformationList[0].BusinessCardQR,
|
|
|
|
|
company_logo: result.BC_Logo ? result.BC_Logo: result.CompanyImageURL,
|
|
|
|
|
company_url: result.BC_Domain,
|
|
|
|
|
company_type: result.CompanyMainCompany,
|
|
|
|
|
email: result.MemberInformationList[0].EMPLOYEE_EMAIL_ADDRESS
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Wifi Credientials
|
|
|
|
|
CommonService.MOHEMM_WIFI_SSID = result.Mohemm_Wifi_SSID;
|
|
|
|
|
CommonService.MOHEMM_WIFI_PASSWORD = result.Mohemm_Wifi_Password;
|
|
|
|
|
localStorage.setItem('bussiness-card-info', JSON.stringify(this.businessInfo));
|
|
|
|
|
|
|
|
|
|
AuthenticationService.servicePrivilage = result.Privilege_List;
|
|
|
|
|
this.authService.setAuthenticatedUser(result).subscribe(() => {
|
|
|
|
|
|