Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_sql.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Kinscher <dev@bjoern-kinscher.de>2019-09-30 23:11:14 +0300
committerBjörn Kinscher <dev@bjoern-kinscher.de>2019-09-30 23:39:04 +0300
commit41bf08165b2b3891599f6141328ec88646779615 (patch)
tree6fbe322296d0bf84518e3fd2e1d01314c5c53ced /lib/Backend
parentdff2807910c815b2c5316390b069387462d37f54 (diff)
propagate changes to display name and email columns in user table to anyone it might affect
Signed-off-by: Björn Kinscher <dev@bjoern-kinscher.de>
Diffstat (limited to 'lib/Backend')
-rw-r--r--lib/Backend/UserBackend.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Backend/UserBackend.php b/lib/Backend/UserBackend.php
index d8c6ae8..67dcc7f 100644
--- a/lib/Backend/UserBackend.php
+++ b/lib/Backend/UserBackend.php
@@ -25,6 +25,7 @@ use OC\User\Backend;
use OCA\UserSQL\Action\EmailSync;
use OCA\UserSQL\Action\IUserAction;
use OCA\UserSQL\Action\QuotaSync;
+use OCA\UserSQL\Action\NameSync;
use OCA\UserSQL\Cache;
use OCA\UserSQL\Constant\App;
use OCA\UserSQL\Constant\DB;
@@ -140,6 +141,13 @@ final class UserBackend extends ABackend implements
$this->userRepository
);
}
+ if (!empty($this->properties[DB::USER_NAME_COLUMN])
+ ) {
+ $this->actions[] = new NameSync(
+ $this->appName, $this->logger, $this->properties, $this->config,
+ $this->userRepository
+ );
+ }
}
/**