diff options
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; } } |