示例#1
0
 /**
  * Method used to check the authentication of the current user.
  *
  * @param   RemoteApi $client The connection resource
  * @param   string $email The email address of the current user
  * @param   string $password The password of the current user
  */
 public static function checkAuthentication($client, $email, $password)
 {
     $is_valid = $client->isValidLogin($email, $password);
     if ($is_valid != 'yes') {
         self::quit('Login information could not be authenticated');
     }
 }