Example #1
0
 public function connectApiAction()
 {
     $vals = array('mail' => $_GET['mail'], 'password' => $_GET['password']);
     $user = Model\Client::find($vals);
     if ($user == null) {
         $retour_id = array("idUser" => 0);
     } else {
         $retour_id = array("idUser" => $user->getPk());
     }
     exit(json_encode($retour_id));
 }