@@ -71,6 +71,9 @@ |
||
71 | 71 | $this->connect->close(); |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $value |
|
76 | + */ |
|
74 | 77 | public function onError($key, $value) |
75 | 78 | { |
76 | 79 | $this->flag = 1; |
@@ -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 | } |
@@ -79,6 +79,9 @@ |
||
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $value |
|
84 | + */ |
|
82 | 85 | public function onError($key, $value) |
83 | 86 | { |
84 | 87 | $this->flag = 1; |
@@ -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 | } |