|
@@ -36,7 +36,7 @@ export class LoginComponent implements OnInit {
|
|
|
|
|
|
loginUser(form: FormGroup) {
|
|
loginUser(form: FormGroup) {
|
|
console.log('Username', form.value.email);
|
|
console.log('Username', form.value.email);
|
|
- console.log('password', form.value.password);
|
|
|
|
|
|
+ //console.log('password', form.value.password);
|
|
|
|
|
|
|
|
|
|
const logindata = {
|
|
const logindata = {
|
|
@@ -44,14 +44,14 @@ export class LoginComponent implements OnInit {
|
|
password: form.value.password
|
|
password: form.value.password
|
|
}
|
|
}
|
|
|
|
|
|
- console.log("username and password ", logindata);
|
|
|
|
|
|
+ //console.log("username and password ", logindata);
|
|
|
|
|
|
this.validationmsg="";
|
|
this.validationmsg="";
|
|
this.validationmsg1="";
|
|
this.validationmsg1="";
|
|
this.loginvalidflag=false;
|
|
this.loginvalidflag=false;
|
|
this.loginvalidpassword=false;
|
|
this.loginvalidpassword=false;
|
|
this.commonservice.getData(this.commonservice.projectpath + "/loginuser", logindata).subscribe(response => {
|
|
this.commonservice.getData(this.commonservice.projectpath + "/loginuser", logindata).subscribe(response => {
|
|
- console.log("in response", response);
|
|
|
|
|
|
+ // console.log("in response", response);
|
|
console.log("in response", response.errors);
|
|
console.log("in response", response.errors);
|
|
|
|
|
|
|
|
|
|
@@ -89,7 +89,7 @@ export class LoginComponent implements OnInit {
|
|
last_loginDate: logindata["last_loginDate"],
|
|
last_loginDate: logindata["last_loginDate"],
|
|
role:logindata["role"]
|
|
role:logindata["role"]
|
|
}
|
|
}
|
|
- console.log("response", loginData);
|
|
|
|
|
|
+ // console.log("response", loginData);
|
|
localStorage.setItem('loginData', JSON.stringify(loginData));
|
|
localStorage.setItem('loginData', JSON.stringify(loginData));
|
|
|
|
|
|
|
|
|
|
@@ -123,14 +123,14 @@ export class LoginComponent implements OnInit {
|
|
|
|
|
|
onKeypressEvent(event: any){
|
|
onKeypressEvent(event: any){
|
|
|
|
|
|
- console.log("in onkey press",event.target.value);
|
|
|
|
|
|
+ // console.log("in onkey press",event.target.value);
|
|
this.loginvalidflag=false;
|
|
this.loginvalidflag=false;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
onKeypressEvent1(event: any){
|
|
onKeypressEvent1(event: any){
|
|
|
|
|
|
- console.log("in onkey press",event.target.value);
|
|
|
|
|
|
+ // console.log("in onkey press",event.target.value);
|
|
this.loginvalidpassword=false;
|
|
this.loginvalidpassword=false;
|
|
|
|
|
|
}
|
|
}
|