@@ -72,8 +72,7 @@ |
||
72 | 72 | return json_encode($this->error); |
73 | 73 | } |
74 | 74 | return json_encode(["Error" => "You are not registered, ".$this->connect->error ]); |
75 | - } |
|
76 | - else |
|
75 | + } else |
|
77 | 76 | { |
78 | 77 | return json_encode($this->error); |
79 | 78 | } |
@@ -44,8 +44,7 @@ |
||
44 | 44 | if(filter_var($email, FILTER_VALIDATE_EMAIL) == false) |
45 | 45 | { |
46 | 46 | $this->onError("email", " *Enter correct Email address"); |
47 | - } |
|
48 | - else if($this->obValidate->validateEmailInDb($email) === 1) |
|
47 | + } else if($this->obValidate->validateEmailInDb($email) === 1) |
|
49 | 48 | { |
50 | 49 | $this->onError("email", " *Email is already registered"); |
51 | 50 | } |
@@ -14,8 +14,9 @@ |
||
14 | 14 | 'passLogin' => $password |
15 | 15 | ); |
16 | 16 | $result = $obLogin->authLogin($data); |
17 | - if(isset($result)) |
|
18 | - echo $result; |
|
19 | - else |
|
20 | - echo json_encode([]); |
|
21 | -} |
|
22 | 17 | \ No newline at end of file |
18 | + if(isset($result)) { |
|
19 | + echo $result; |
|
20 | + } else { |
|
21 | + echo json_encode([]); |
|
22 | + } |
|
23 | + } |
|
23 | 24 | \ No newline at end of file |