/** * Unregister verified Login driver * * @param Auth_Login_Driver */ public static function _unregister_verified(Auth_Login_Driver $driver) { unset(static::$_verified[$driver->get_id()]); }
/** * Extension of base driver method to default to user group instead of user id */ public function has_access($condition, $driver = null, $user = null) { if (is_null($user)) { $groups = $this->get_groups(); $user = reset($groups); } return parent::has_access($condition, $driver, $user); }