Horde_Kolab_FreeBusy_User::isAuthenticated PHP Method

isAuthenticated() public method

Finds out if a set of login credentials are valid.
public isAuthenticated ( ) : boolean
return boolean Whether or not the password was correct.
    public function isAuthenticated();

Usage Example

Example #1
0
File: Log.php Project: horde/horde
 /**
  * Finds out if a set of login credentials are valid.
  *
  * @return boolean Whether or not the password was correct.
  */
 public function isAuthenticated()
 {
     $result = $this->_user->isAuthenticated();
     $id = $this->_user->getPrimaryId();
     if ($result) {
         $this->_logger->notice(sprintf('Login success for "%s" from "%s" to free/busy.', $id, $this->_remote));
     } else {
         if (!empty($id)) {
             $this->_logger->err(sprintf('Failed login for "%s" from "%s" to free/busy', $id, $this->_remote));
         } else {
             $this->_logger->notice(sprintf('Anonymous access from "%s" to free/busy.', $this->_remote));
         }
     }
     return $result;
 }