diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 2a66f907..bf41944e 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -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; @@ -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(); @@ -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) @@ -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) diff --git a/src/app/login/login.html b/src/app/login/login.html index 22bceb9d..b18ea567 100644 --- a/src/app/login/login.html +++ b/src/app/login/login.html @@ -22,7 +22,7 @@