The order of the functions is closely related to the order they are called. First it is checked if automatic login is possible with this method. If so it is tried via the performAutoLogin function. When a user provides credentials the authenticate function is called.
Author: sl
Author: Kevin Papst
コード例 #1
0
ファイル: Ldapadvanced.php プロジェクト: kimai/kimai
 /**
  * Get the default global role
  *
  * @return integer
  */
 public function getDefaultGlobalRole()
 {
     if ($this->defaultGlobalRoleName) {
         $database = $this->getDatabase();
         $roles = $database->global_roles();
         foreach ($roles as $role) {
             if ($role['name'] == $this->defaultGlobalRoleName) {
                 return $role['globalRoleID'];
             }
         }
     }
     return parent::getDefaultGlobalRole();
 }
コード例 #2
0
ファイル: Ldap.php プロジェクト: rcproctor/kimai
 public function __construct($database = null, $kga = null)
 {
     parent::__construct($database, $kga);
     $this->kimaiAuth = new Kimai_Auth_Kimai($database, $kga);
 }