Skip to content

Commit

Permalink
Merge pull request #19 from pramit-d/develop
Browse files Browse the repository at this point in the history
CodeQl issue fixed: Use of password hash with insufficient computational effort
  • Loading branch information
devikasuresh20 authored Jan 31, 2024
2 parents ec53f35 + 0abde3f commit bbfd233
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import * as CryptoJS from 'crypto-js';
export class loginContentClass implements OnInit, OnDestroy {
model: any = {};
userID: any;
password: any;
code: any;

encryptedVar: any;
key: any;
Expand Down Expand Up @@ -227,7 +227,7 @@ export class loginContentClass implements OnInit, OnDestroy {
}

login(doLogOut) {
this.encryptPassword = this.encrypt(this.Key_IV, this.password)
this.encryptPassword = this.encrypt(this.Key_IV, this.code)
// this.password = CryptoJS.AES.encrypt(this.password,this.encPassword).toString();
// console.log("PARTH"+this.password.ciphertext.toString(CryptoJS.enc.Base64))
// this.password = AES.encrypt(this.password).toString();
Expand All @@ -244,7 +244,7 @@ export class loginContentClass implements OnInit, OnDestroy {
response.previlegeObj !== undefined &&
response.previlegeObj !== null
) {
this.successCallback(response, this.userID, this.password);
this.successCallback(response, this.userID, this.code);
}
},
(error: any) => this.errorCallback(error)
Expand Down Expand Up @@ -286,7 +286,7 @@ export class loginContentClass implements OnInit, OnDestroy {
response.previlegeObj !== undefined &&
response.previlegeObj !== null
) {
this.successCallback(response, this.userID, this.password);
this.successCallback(response, this.userID, this.code);
}
},
(error: any) => this.errorCallback(error)
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 @@ -22,7 +22,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="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 bbfd233

Please sign in to comment.