Skip to content

Commit

Permalink
CodeQl issue fixed: Use of password hash with insufficient computatio…
Browse files Browse the repository at this point in the history
…nal effort
  • Loading branch information
Pramit Kumar Dutta authored Jan 30, 2024
1 parent 84f3bd7 commit 305f8d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import * as CryptoJS from 'crypto-js';
export class loginContentClass implements OnInit {
model: any = {};
userID: any;
abc: any;
code: any;
public loginResult: string;
key: any;
iv: any;
Expand Down Expand Up @@ -198,7 +198,7 @@ export class loginContentClass implements OnInit {

login(doLogOut) {

this.encryptpassword = this.encrypt(this.Key_IV, this.abc);
this.encryptpassword = this.encrypt(this.Key_IV, this.code);
this.loginservice
.authenticateUser(this.userID, this.encryptpassword, doLogOut)
.subscribe(
Expand Down Expand Up @@ -305,7 +305,7 @@ export class loginContentClass implements OnInit {
sessionStorage.removeItem("CLI");
// sessionStorage.removeItem("session_id");
this.czentrixServices
.getCTILoginToken(this.userID, this.abc)
.getCTILoginToken(this.userID, this.code)
.subscribe(
(response) => {
this.dataSettingService.loginKey = response.login_key;
Expand Down
2 changes: 1 addition & 1 deletion src/app/login/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="col-xs-11 col-md-11 col-sm-11">
<md-input-container class="full-width">
<input mdInput type="{{dynamictype}}" id="password" placeholder="Enter Password" [(ngModel)]="password" name="password" />
<input mdInput type="{{dynamictype}}" id="password" placeholder="Enter Password" [(ngModel)]="code" name="password" />
<md-icon mdSuffix class="mdicon mat-icon material-icons cursorPointer" role="img" aria-hidden="true" mdTooltip="Show Password" (mousedown)='showPWD()' style="color:gray">visibility</md-icon>
</md-input-container>
</div>
Expand Down

0 comments on commit 305f8d6

Please sign in to comment.