@@ -63,8 +63,7 @@ |
||
63 | 63 | return json_encode($this->error); |
64 | 64 | } |
65 | 65 | return json_encode(["Error" => "You are not registered, ".$this->connect->error ]); |
66 | - } |
|
67 | - else |
|
66 | + } else |
|
68 | 67 | { |
69 | 68 | return json_encode($this->error); |
70 | 69 | } |
@@ -33,8 +33,7 @@ |
||
33 | 33 | if(filter_var($email, FILTER_VALIDATE_EMAIL) == false) |
34 | 34 | { |
35 | 35 | $this->onError("email", " *Enter correct Email address"); |
36 | - } |
|
37 | - else if($this->obValidate->validateEmailInDb($email) === 1) |
|
36 | + } else if($this->obValidate->validateEmailInDb($email) === 1) |
|
38 | 37 | { |
39 | 38 | $this->onError("email", " *Email is already registered"); |
40 | 39 | } |