X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fchange-password%2FChangePasswordComponent.ts;h=2b32a8bb27e4418f7fabd8dc5e25fd52463e4f07;hb=refs%2Ftags%2Fv14.0.0;hp=a2036ff2e4a6d2b141f158eaed809015a3a51043;hpb=a9816553feb848341a8c3214861d5479c3688578;p=osm%2FNG-UI.git diff --git a/src/app/utilities/change-password/ChangePasswordComponent.ts b/src/app/utilities/change-password/ChangePasswordComponent.ts index a2036ff..2b32a8b 100644 --- a/src/app/utilities/change-password/ChangePasswordComponent.ts +++ b/src/app/utilities/change-password/ChangePasswordComponent.ts @@ -59,8 +59,9 @@ export class ChangePasswordComponent implements OnInit { /** Lifecyle Hooks the trigger before component is instantiate @public */ public ngOnInit(): void { + // eslint-disable-next-line security/detect-non-literal-fs-filename const modalRef: NgbModalRef = this.modalService.open(AddEditUserComponent, { backdrop: 'static', keyboard: false }); - modalRef.componentInstance.userID = localStorage.getItem('user_id'); + modalRef.componentInstance.userID = sessionStorage.getItem('user_id'); if (this.editType === 'changePassword') { modalRef.componentInstance.userTitle = this.translateService.instant('PAGE.USERS.EDITCREDENTIALS'); } @@ -72,5 +73,4 @@ export class ChangePasswordComponent implements OnInit { }).catch((err: Error): void => { // catch error }); } - }