瀏覽代碼

Changed project base path to /api

Ramya 1 月之前
父節點
當前提交
ff0ffb0579
共有 2 個文件被更改,包括 8 次插入7 次删除
  1. 2 1
      src/app/environments/environment.ts
  2. 6 6
      src/app/login/login.component.ts

+ 2 - 1
src/app/environments/environment.ts

@@ -1,6 +1,7 @@
 export const environment = {
  //projectpath: "http://localhost:9000"
  //projectpath:"http://54.225.129.95:31165",
-projectpath:"http://52.221.194.168:8000"
+//projectpath:"http://52.221.194.168:8000"
+projectpath:"https://dvr.mindcraft.in/api"
 
 }

+ 6 - 6
src/app/login/login.component.ts

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