From 6a65134206d6a1fd54d0748feafc8072b9d51937 Mon Sep 17 00:00:00 2001 From: Neeraj Kumar Date: Mon, 5 Feb 2024 15:05:32 +0530 Subject: [PATCH] Revert "CodeQl issue fixed: Use of password hash with insufficient computational effort" --- src/app/login/login.component.ts | 6 +++--- src/app/login/login.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 95b962e..121cd0c 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -40,7 +40,7 @@ import * as CryptoJS from 'crypto-js'; export class loginContentClass implements OnInit { model: any = {}; userID: any; - code: any; + password: any; public loginResult: string; key: any; iv: any; @@ -198,7 +198,7 @@ export class loginContentClass implements OnInit { login(doLogOut) { - this.encryptpassword = this.encrypt(this.Key_IV, this.code); + this.encryptpassword = this.encrypt(this.Key_IV, this.password); this.loginservice .authenticateUser(this.userID, this.encryptpassword, doLogOut) .subscribe( @@ -305,7 +305,7 @@ export class loginContentClass implements OnInit { sessionStorage.removeItem("CLI"); // sessionStorage.removeItem("session_id"); this.czentrixServices - .getCTILoginToken(this.userID, this.code) + .getCTILoginToken(this.userID, this.password) .subscribe( (response) => { this.dataSettingService.loginKey = response.login_key; diff --git a/src/app/login/login.html b/src/app/login/login.html index 97dcd3f..dd576af 100644 --- a/src/app/login/login.html +++ b/src/app/login/login.html @@ -23,7 +23,7 @@
- +