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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-03-20 13:28:11 +0300
committerStefan Giehl <stefan@matomo.org>2019-03-20 13:28:11 +0300
commit4df78749cb2a105de554dc776454b9d640e9b7e5 (patch)
treeae77c5f7da90016518293173b864c19ae1e2ed1d /plugins/UsersManager
parent54e87e566a1b0a35a2cfd37c935c88102741f3fe (diff)
Do not send password changed email for automated use cases. (#14240)
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r--plugins/UsersManager/API.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/UsersManager/API.php b/plugins/UsersManager/API.php
index dba779cb41..064a079562 100644
--- a/plugins/UsersManager/API.php
+++ b/plugins/UsersManager/API.php
@@ -922,7 +922,9 @@ class API extends \Piwik\Plugin\API
$this->sendEmailChangedEmail($userInfo, $email);
}
- if ($passwordHasBeenUpdated) {
+ if ($passwordHasBeenUpdated
+ && $requirePasswordConfirmation
+ ) {
$this->sendPasswordChangedEmail($userInfo);
}