added btoa

MOHEMM-PHASE-2-SFH
umasoodch 3 years ago
parent 028800c169
commit c4bbc02981

@ -438,9 +438,9 @@ export class ConfirmLoginComponent implements OnInit {
private checkUserAuthentication() {
this.cs.startLoading();
const request = new LoginRequest();
request.P_USER_NAME = this.username;
request.P_USER_NAME = btoa(this.username);
request.P_LANGUAGE = 'US'; // this.language;
request.P_PASSWORD = localStorage.getItem('password');
request.P_PASSWORD = btoa(localStorage.getItem('password'));
this.authService
.login(request, () => {
console.log('error here');

@ -253,9 +253,9 @@ export class LoginComponent implements OnInit, OnDestroy {
private checkUserAuthentication() {
this.cs.startLoading();
const request = new LoginRequest();
request.P_USER_NAME = this.username;
request.P_USER_NAME = btoa(this.username);
request.P_LANGUAGE = this.language;
request.P_PASSWORD = this.password;
request.P_PASSWORD = btoa(this.password);
console.log(request);
this.authService
.login(request, () => {

Loading…
Cancel
Save