Ignore:
Timestamp:
04/13/11 10:07:27 (13 years ago)
Author:
emersonfaria
Message:

Ticket #1746 - Criada autenticacao dos Backends no LDAP e corrigido bug de login alfanumerico

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/z-push/backend/BackendProxy.php

    r3754 r4000  
    1111 * Consult LICENSE file for details 
    1212 ************************************************/ 
    13 include_once('diffbackend.php'); 
     13require_once("diffbackend.php"); 
    1414 
    1515class BackendProxy extends BackendDiff { 
     
    2828 
    2929        function Logon($username, $domain, $password) { 
    30                 global $BACKEND_EMAIL; 
    31                 if (isset($BACKEND_EMAIL)) return $this->BackendEmail->Logon($username, $domain, $password); 
    32                 else return true; 
     30                global $BACKEND_EMAIL, $BACKEND_CONTACTS, $BACKEND_CALENDAR; 
     31                if (isset($BACKEND_EMAIL) and (! $this->BackendEmail->Logon($username, $domain, $password))) return false; 
     32                if (isset($BACKEND_CONTACTS) and (! $this->BackendContacts->Logon($username, $domain, $password))) return false; 
     33                if (isset($BACKEND_CALENDAR) and (! $this->BackendCalendar->Logon($username, $domain, $password))) return false; 
     34                return true; 
    3335        } 
    3436 
     
    4244                debugLog('BackendProxy::Setup('.$user.','.$devid.','.$protocolversion.')'); 
    4345                global $BACKEND_EMAIL, $BACKEND_CONTACTS, $BACKEND_CALENDAR; 
    44                 $this->_user = $user; 
    45                 $this->_devid = $devid; 
    46                 $this->_protocolversion = $protocolversion; 
    4746                if (isset($BACKEND_EMAIL)) $this->BackendEmail->Setup($user, $devid, $protocolversion); 
    4847                if (isset($BACKEND_CONTACTS)) $this->BackendContacts->Setup($user, $devid, $protocolversion); 
Note: See TracChangeset for help on using the changeset viewer.