summaryrefslogtreecommitdiffstats
path: root/settings/Controller/MailSettingsController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-19 18:40:47 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-11-18 12:10:50 +0100
commit62855c08ffbc7697e43f8aeca42095add8b84986 (patch)
tree07efb188935bdf52715eab6e893c6d49993dc8aa /settings/Controller/MailSettingsController.php
parentcc33f8695bdbbb2869608a78f9fb298eddc8929b (diff)
downloadnextcloud-server-62855c08ffbc7697e43f8aeca42095add8b84986.tar.gz
nextcloud-server-62855c08ffbc7697e43f8aeca42095add8b84986.zip
Require confirmation when changing the email settings
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings/Controller/MailSettingsController.php')
-rw-r--r--settings/Controller/MailSettingsController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/Controller/MailSettingsController.php b/settings/Controller/MailSettingsController.php
index 84423aa8e29..108ac3f393a 100644
--- a/settings/Controller/MailSettingsController.php
+++ b/settings/Controller/MailSettingsController.php
@@ -73,6 +73,9 @@ class MailSettingsController extends Controller {
/**
* Sets the email settings
+ *
+ * @PasswordConfirmationRequired
+ *
* @param string $mail_domain
* @param string $mail_from_address
* @param string $mail_smtpmode
@@ -116,6 +119,9 @@ class MailSettingsController extends Controller {
/**
* Store the credentials used for SMTP in the config
+ *
+ * @PasswordConfirmationRequired
+ *
* @param string $mail_smtpname
* @param string $mail_smtppassword
* @return array