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

Commit

Permalink
Revert " CodeQl issue fixed: Use of password hash with insufficient c…
Browse files Browse the repository at this point in the history
…omputational effort"
  • Loading branch information
NeerajK007 authored Feb 5, 2024
1 parent 2e446a5 commit 3f67f8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/app/app-modules/user-login/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
matInput
[type]="hide ? 'password' : 'text'"
placeholder=""
formControlName="code"
formControlName="password"
id="password"
/>
<button
Expand Down Expand Up @@ -78,9 +78,9 @@
loginForm.controls.userName.value !== undefined &&
loginForm.controls.userName.value !== null &&
loginForm.controls.userName.value !== '' &&
loginForm.controls.code.value !== undefined &&
loginForm.controls.code.value !== null &&
loginForm.controls.code.value !== ''
loginForm.controls.password.value !== undefined &&
loginForm.controls.password.value !== null &&
loginForm.controls.password.value !== ''
)
"
type="submit"
Expand Down
8 changes: 4 additions & 4 deletions src/app/app-modules/user-login/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ export class LoginComponent implements OnInit {

loginForm = this.fb.group({
userName: [''],
code: [''],
password: [''],
});

/**
* Calling user authentication API
*/
public onSubmit(): void {
let encryptedPwd = this.encrypt(this.Key_IV, this.loginForm.controls.code.value)
let encryptedPwd = this.encrypt(this.Key_IV, this.loginForm.controls.password.value)
let reqObj = {
userName: this.loginForm.controls.userName.value,
password: encryptedPwd,
Expand Down Expand Up @@ -209,7 +209,7 @@ export class LoginComponent implements OnInit {
.userLogoutPreviousSession(this.loginForm.controls.userName.value)
.subscribe((logOutFromPreviousSession: any) => {
if (logOutFromPreviousSession.statusCode === 200) {
let encryptedPwd = this.encrypt(this.Key_IV, this.loginForm.controls.code.value)
let encryptedPwd = this.encrypt(this.Key_IV, this.loginForm.controls.password.value)
let loginReqObj = {
userName: this.loginForm.controls.userName.value,
password: encryptedPwd,
Expand Down Expand Up @@ -310,7 +310,7 @@ export class LoginComponent implements OnInit {
*/


this.ctiService.getCTILoginToken(this.loginForm.controls.userName.value, this.loginForm.controls.code.value).subscribe((response:any) => {
this.ctiService.getCTILoginToken(this.loginForm.controls.userName.value, this.loginForm.controls.password.value).subscribe((response:any) => {
if(response && response.data) {
this.loginService.loginKey = response.data.login_key;
}
Expand Down

0 comments on commit 3f67f8c

Please sign in to comment.