Beispiel #1
0
 public function checkCredentials($strUsername, $strPassword, $booDoLogin = false)
 {
     $objDataCustomer = new GSALES_DATA_CUSTOMER();
     $intResult = $objDataCustomer->customerLogin($strUsername, $strPassword);
     if ($intResult > 0 && $booDoLogin) {
         $arrUserData = $objDataCustomer->getCustomerById($intResult);
         if ($arrUserData) {
             $this->login($arrUserData);
         }
     }
     return $intResult;
 }