diff --git a/lib/Backend/UserBackend.php b/lib/Backend/UserBackend.php index adf0aad..73da238 100644 --- a/lib/Backend/UserBackend.php +++ b/lib/Backend/UserBackend.php @@ -21,6 +21,7 @@ namespace OCA\UserSQL\Backend; +use OC\User\Backend; use OCA\UserSQL\Action\EmailSync; use OCA\UserSQL\Action\IUserAction; use OCA\UserSQL\Action\QuotaSync; @@ -642,4 +643,16 @@ final class UserBackend extends ABackend implements { return false; } + + /** + * @inheritdoc + */ + public function implementsActions($actions): bool + { + if ($actions & Backend::SET_PASSWORD) { + return !empty($this->properties[Opt::PASSWORD_CHANGE]); + } + + return parent::implementsActions($actions); + } }