diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-03-20 13:28:11 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@matomo.org> | 2019-03-20 13:28:11 +0300 |
commit | 4df78749cb2a105de554dc776454b9d640e9b7e5 (patch) | |
tree | ae77c5f7da90016518293173b864c19ae1e2ed1d /plugins/UsersManager | |
parent | 54e87e566a1b0a35a2cfd37c935c88102741f3fe (diff) |
Do not send password changed email for automated use cases. (#14240)
Diffstat (limited to 'plugins/UsersManager')
-rw-r--r-- | plugins/UsersManager/API.php | 4 |
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); } |