diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-08-14 17:06:57 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-08-14 17:25:46 +0200 |
commit | 6f24865bf8a55975778acca5e2610fda51deca35 (patch) | |
tree | 90a3280db4a542d3f5b12f2bc66292c1ae45f3e2 /apps/admin_audit/lib/Actions | |
parent | d05c815796152f0d76c459e893f154b3b78005aa (diff) | |
download | nextcloud-server-6f24865bf8a55975778acca5e2610fda51deca35.tar.gz nextcloud-server-6f24865bf8a55975778acca5e2610fda51deca35.zip |
don't blame email address changers
the information is being collected with admin_audit
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/admin_audit/lib/Actions')
-rw-r--r-- | apps/admin_audit/lib/Actions/UserManagement.php | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/apps/admin_audit/lib/Actions/UserManagement.php b/apps/admin_audit/lib/Actions/UserManagement.php index 5cf1494df6e..1ad6ba4e20f 100644 --- a/apps/admin_audit/lib/Actions/UserManagement.php +++ b/apps/admin_audit/lib/Actions/UserManagement.php @@ -97,14 +97,25 @@ class UserManagement extends Action { * @param array $params */ public function change(array $params) { - if ($params['feature'] === 'enabled') { - $this->log( - $params['value'] === 'true' ? 'User enabled: "%s"' : 'User disabled: "%s"', - ['user' => $params['user']->getUID()], - [ - 'user', - ] - ); + switch($params['feature']) { + case 'enabled': + $this->log( + $params['value'] === 'true' ? 'User enabled: "%s"' : 'User disabled: "%s"', + ['user' => $params['user']->getUID()], + [ + 'user', + ] + ); + break; + case 'eMailAddress': + $this->log( + 'Email address changed for user %s', + ['user' => $params['user']->getUID()], + [ + 'user', + ] + ); + break; } } |