diff options
Diffstat (limited to 'lib/private/user/dummy.php')
-rw-r--r-- | lib/private/user/dummy.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/private/user/dummy.php b/lib/private/user/dummy.php index fd0201734fa..322a4562ee6 100644 --- a/lib/private/user/dummy.php +++ b/lib/private/user/dummy.php @@ -24,7 +24,7 @@ /** * dummy user backend, does not keep state, only for testing use */ -class OC_User_Dummy extends OC_User_Backend { +class OC_User_Dummy extends OC_User_Backend implements \OCP\IUserBackend { private $users = array(); private $displayNames = array(); @@ -156,4 +156,12 @@ class OC_User_Dummy extends OC_User_Backend { public function getDisplayName($uid) { return isset($this->displayNames[$uid])? $this->displayNames[$uid]: $uid; } + + /** + * Backend name to be shown in user management + * @return string the name of the backend to be shown + */ + public function getBackendName(){ + return 'Dummy'; + } } |