Remove phone validation

This commit is contained in:
Djery-Tom 2023-03-10 11:36:52 +01:00
parent 856d6027a2
commit 2438e94261
2 changed files with 8 additions and 6 deletions

View File

@ -178,6 +178,7 @@ class DataBaseConnector
* @return bool * @return bool
*/ */
public function checknumberValidity($phone){ public function checknumberValidity($phone){
return true;
try { try {
return $this->messenger->checkPhoneExist($phone); return $this->messenger->checkPhoneExist($phone);
} catch(\Throwable $ex){ } catch(\Throwable $ex){

View File

@ -106,6 +106,7 @@ class DataBaseConnector
} }
public function checknumberValidity($phone){ public function checknumberValidity($phone){
return true;
try { try {
return true;//$this->messenger->checkPhoneExist($phone); return true;//$this->messenger->checkPhoneExist($phone);
} catch(\Throwable $ex){ } catch(\Throwable $ex){
@ -272,7 +273,7 @@ na.validation_code as validation_code,ag.id as agentId,na.solde AS balance,na.et
mysqli_stmt_execute($result); mysqli_stmt_execute($result);
$r = mysqli_stmt_get_result($result); $r = mysqli_stmt_get_result($result);
$rows=[]; $rows=[];
while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC )) { while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC )) {
$rows[]=$row; $rows[]=$row;
} }
@ -499,13 +500,13 @@ ne.id as network_id,ag.date_created as date_created,cg.category as category,
} }
if($row['category']!='geolocated'){ if($row['category']!='geolocated'){
$row['nbre_membre']=$this->getNbMemberOf($row['code_membre']); $row['nbre_membre']=$this->getNbMemberOf($row['code_membre']);
} }
return $row; return $row;
} }
return ['error'=>-3,"error_msg"=>"Mot de passe incorrect","last"=>$row]; return ['error'=>-3,"error_msg"=>"Mot de passe incorrect","last"=>$row];
} }
}else }else
@ -917,4 +918,4 @@ ag.adresse,
return $li; return $li;
}else return mysqli_error($this->con); }else return mysqli_error($this->con);
} }
} }