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

CodeQl issue fixed: Use of password hash with insufficient computational effort #80

Merged
merged 2 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading