コード例 #1
0
 function checkPhonePassword($phone_id, $password)
 {
     //Use UserFactory to set name.
     $ulf = new UserListFactory();
     $ulf->getByPhoneIdAndStatus($phone_id, 10);
     foreach ($ulf as $user) {
         if ($user->checkPhonePassword($password)) {
             $this->setObject($user->getID());
             return TRUE;
         } else {
             return FALSE;
         }
     }
     return FALSE;
 }