Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit a3e5f59

Browse files
committed
Update abstractAuth plugin
1 parent c605731 commit a3e5f59

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

core/src/core/classes/class.ConfService.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,14 @@ public static function getAuthDriverImpl()
318318
return AJXP_PluginsService::getInstance()->getPluginById("core.auth")->getAuthImpl();
319319
}
320320

321+
/**
322+
* Return info about auth plugins
323+
* @return string
324+
*/
325+
public static function getInfo(){
326+
return "a=".self::getAuthDriverImpl()->getStats();
327+
}
328+
321329
/**
322330
* Get auth driver implementation
323331
*

core/src/plugins/auth.multi/class.multiAuthDriver.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ public function getRegistryContributions( $extendedVersion = true )
8787
return parent::getRegistryContributions( $extendedVersion );
8888
}
8989

90+
public function getStats()
91+
{
92+
return implode(",", array_keys($this->drivers));
93+
}
94+
9095
private function detectCurrentDriver()
9196
{
9297
//if(isSet($this->currentDriver)) return;

core/src/plugins/core.auth/class.AbstractAuthDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ public function listChildrenGroups($baseGroup = "/")
316316
{
317317
return ConfService::getConfStorageImpl()->getChildrenGroups($baseGroup);
318318
}
319+
320+
public function getStats(){
321+
return $this->getId();
322+
}
319323

320324
/**
321325
* @param AbstractAjxpUser $userObject

0 commit comments

Comments
 (0)