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

Commit

Permalink
Merge pull request #21 from PSMRI/revert-20-develop
Browse files Browse the repository at this point in the history
Revert "CodeQl issue fixed: Use of password hash with insufficient computational effort"
  • Loading branch information
devikasuresh20 authored Feb 6, 2024
2 parents 91196e9 + 46afef4 commit d56d0d2
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 @@ -23,7 +23,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)]="code" name="password" />
<input autocomplete="off" mdInput [type]="dynamictype" id="password" placeholder="Enter Password" [(ngModel)]="password" name="password" />
<md-icon mdSuffix class="mat-icon material-icons cursorPointer" role="img" aria-hidden="true" mdTooltip="Show Password" (mousedown)='showPWD()' (touchstart)='showPWD()' (mouseup)='hidePWD()' (touchend)='showPWD()' 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 @@ -32,7 +32,7 @@ import * as CryptoJS from 'crypto-js';
export class LoginComponent implements OnInit {

userName: any;
code: any;
password: any;
designation: any;
dynamictype = 'password';

Expand Down Expand Up @@ -119,7 +119,7 @@ export class LoginComponent implements OnInit {


login() {
let encryptPassword = this.encrypt(this.Key_IV, this.code)
let encryptPassword = this.encrypt(this.Key_IV, this.password)
this.authService.login(this.userName.trim(), encryptPassword, false)
.subscribe(res => {
if (res.statusCode == '200') {
Expand Down

0 comments on commit d56d0d2

Please sign in to comment.