fixed xacta report issue

enad-pre-live
umasoodch 4 years ago
parent a942f11b78
commit 5609d85853

@ -32,6 +32,6 @@
</ion-content> </ion-content>
<ion-footer> <ion-footer>
<div class="centerDiv"> <div class="centerDiv">
<ion-button [ngClass]="{'disable-button-opacity': isValidForm()}" class="button-login" ion-button (click)=" userCheck()" [disabled]="isValidForm()">{{ts.trPK('login','changepassword')}}</ion-button> <ion-button [ngClass]="{'disable-button-opacity': isValidForm()}" class="button-login" ion-button (click)=" sendSMSForForgotPassword()" [disabled]="isValidForm()">{{ts.trPK('login','changepassword')}}</ion-button>
</div> </div>
</ion-footer> </ion-footer>

@ -46,22 +46,17 @@ export class CheckUserComponent implements OnInit {
return true; return true;
} }
public userCheck() public userCheck() {
{
this.cs.startLoading(); this.cs.startLoading();
const request = new CheckUserAuthenticationRequest(); const request = new CheckUserAuthenticationRequest();
request.P_USER_NAME = this.P_USER_NAME; request.P_USER_NAME = this.P_USER_NAME;
this.authService.checkUserAuthentication( this.authService.checkUserAuthentication(request, () => {}, this.ts.trPK('general', 'ok')).subscribe((result: CheckUserAuthenticationResponse) => {
request, if (this.cs.validResponse(result)) {
() => { this.checkUserResult = result;
/* Write code for error */ this.cs.stopLoading();
}, this.ts.trPK('general', 'ok')).subscribe((result: CheckUserAuthenticationResponse) => { this.sendSMSForForgotPassword();
if (this.cs.validResponse(result)) { }
this.checkUserResult = result; });
this.cs.stopLoading();
this.sendSMSForForgotPassword();
}
});
} }
private checkUserResult: CheckUserAuthenticationResponse; private checkUserResult: CheckUserAuthenticationResponse;
@ -69,9 +64,9 @@ export class CheckUserComponent implements OnInit {
private sendSMSForForgotPassword() { private sendSMSForForgotPassword() {
this.cs.startLoading(); this.cs.startLoading();
let changePwdObj= new LoginRequest(); let changePwdObj= new LoginRequest();
changePwdObj.MobileNumber= this.checkUserResult.BasicMemberInformation.P_MOBILE_NUMBER; // changePwdObj.MobileNumber= this.checkUserResult.BasicMemberInformation.P_MOBILE_NUMBER;
changePwdObj.P_USER_NAME=this.P_USER_NAME; changePwdObj.P_USER_NAME=this.P_USER_NAME;
changePwdObj.P_MOBILE_NUMBER=this.checkUserResult.BasicMemberInformation.P_MOBILE_NUMBER; // changePwdObj.P_MOBILE_NUMBER=this.checkUserResult.BasicMemberInformation.P_MOBILE_NUMBER;
this.authService.sendPublicSMS( this.authService.sendPublicSMS(
changePwdObj, changePwdObj,

Loading…
Cancel
Save