summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-14 17:06:57 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-20 15:05:04 +0200
commit7dfb837766376576698ee9667bc471aec32854e9 (patch)
tree68e04d3535d0a6bbfad0396bfaa4fba9217a1c18 /apps/admin_audit
parentaef428733b2a4279b71fda730286a86e14b34433 (diff)
downloadnextcloud-server-7dfb837766376576698ee9667bc471aec32854e9.tar.gz
nextcloud-server-7dfb837766376576698ee9667bc471aec32854e9.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')
-rw-r--r--apps/admin_audit/lib/Actions/UserManagement.php27
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 9d0b237e303..d45863a1218 100644
--- a/apps/admin_audit/lib/Actions/UserManagement.php
+++ b/apps/admin_audit/lib/Actions/UserManagement.php
@@ -70,14 +70,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;
}
}