Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #80 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 65a1026 + 4f3299a commit 394e00a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/login/login.component.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 autocomplete="off" mdInput [type]="dynamictype" id="password" placeholder="Enter Password" [(ngModel)]="password" name="password" />
<input autocomplete="off" 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()' (mouseup)='hidePWD()' style="color:gray">visibility</md-icon>
</md-input-container>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class LoginComponent implements OnInit {
_iterationCount: any;

userName: any;
password: any;
code: any;
eSanjeevaniArr: any=[];
dynamictype = 'password';
@ViewChild('focus') private elementRef: ElementRef;
Expand Down Expand Up @@ -130,7 +130,7 @@ export class LoginComponent implements OnInit {

login() {

let encriptPassword = this.encrypt(this.Key_IV, this.password)
let encriptPassword = this.encrypt(this.Key_IV, this.code)

this.authService.login(this.userName, encriptPassword, false)
.subscribe(res => {
Expand Down

0 comments on commit 394e00a

Please sign in to comment.