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
Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 public function __construct($database = null, $kga = null)
 {
     parent::__construct($database, $kga);
     $this->kimaiAuth = new Kimai_Auth_Kimai($database, $kga);
 }