Coverity-CWE 922: Insecure Storage of Sensitive Information(localStorage write)
- Coverity fix for localStorage write issue: For storing datas
in browser localStorage so changed it to sessionStorage
Change-Id: I3fdce439b923e006b44a50a42fab19b7ffbcdec6
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/app/utilities/warning/WarningComponent.ts b/src/app/utilities/warning/WarningComponent.ts
index c687fb0..d52e989 100644
--- a/src/app/utilities/warning/WarningComponent.ts
+++ b/src/app/utilities/warning/WarningComponent.ts
@@ -113,7 +113,7 @@
const modalData: MODALCLOSERESPONSEDATA = {
message: 'Done'
};
- const id: string = localStorage.getItem('user_id');
+ const id: string = sessionStorage.getItem('user_id');
const payLoad: UNLOCKPARAMS = {};
if (this.editType === 'unlock') {
payLoad.system_admin_id = id;