summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-24 00:01:13 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-02-28 16:30:33 -0600
commit50f3efad6f9026be32457e14d925a231b9240eaf (patch)
tree3dff851ec26781185733712be1adba6a16d634a9 /lib
parent5fc924f6c95f9f718f283deb79f71320b16ceebb (diff)
downloadnextcloud-server-50f3efad6f9026be32457e14d925a231b9240eaf.tar.gz
nextcloud-server-50f3efad6f9026be32457e14d925a231b9240eaf.zip
OCS API endpoint to resend welcome message
* send a POST request to ocs/v1.php/cloud/users/USERNAME/resendWelcomeMessage to trigger the welcome message to be send * fixes #3367 example curl statement: curl -i https://example.org/ocs/v1.php/cloud/users/USERNAME/welcome -H "OCS-APIRequest: true" -u admin:password -X POST Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index ec36aab75d9..5a7b9da929d 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -53,6 +53,7 @@ use OCP\Federation\ICloudIdManager;
use OCP\Files\IAppData;
use OCP\Files\Mount\IMountManager;
use OCP\RichObjectStrings\IValidator;
+use OCP\Util;
class DIContainer extends SimpleContainer implements IAppContainer {
@@ -339,6 +340,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $c->query('ServerContainer')->getWebRoot();
});
+ $this->registerService('fromMailAddress', function() {
+ return Util::getDefaultEmailAddress('no-reply');
+ });
+
$this->registerService('OCP\Encryption\IManager', function ($c) {
return $this->getServer()->getEncryptionManager();
});