summaryrefslogtreecommitdiffstats
path: root/lib/private/user/user.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-12 17:25:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-19 10:17:17 +0100
commit6da33e1ea7bb340e22330941d2a980a1414210b0 (patch)
tree3717d08e21cb02a149ae109f4efeecb83ba582c1 /lib/private/user/user.php
parent5c6e08213e6ed52517f9f729ae91a2973f09c182 (diff)
downloadnextcloud-server-6da33e1ea7bb340e22330941d2a980a1414210b0.tar.gz
nextcloud-server-6da33e1ea7bb340e22330941d2a980a1414210b0.zip
introduce names for user backends - IUserBackend
* LDAP with multiple servers also proved backendName
Diffstat (limited to 'lib/private/user/user.php')
-rw-r--r--lib/private/user/user.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php
index 062081d51d4..0b4f9a24276 100644
--- a/lib/private/user/user.php
+++ b/lib/private/user/user.php
@@ -225,6 +225,9 @@ class User implements IUser {
* @return string
*/
public function getBackendClassName() {
+ if($this->backend instanceof \OCP\IUserBackend) {
+ return $this->backend->getBackendName();
+ }
return get_class($this->backend);
}