From 27b00b3619dbdd86da9403388e70e89039a7db13 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 30 Aug 2021 11:56:07 +0545 Subject: [PATCH 1/2] update events --- app/config/events.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/config/events.php b/app/config/events.php index b27a5eafb..28c97398a 100644 --- a/app/config/events.php +++ b/app/config/events.php @@ -162,6 +162,21 @@ return [ 'model' => Response::MODEL_ANY, 'note' => 'version >= 0.7', ], + 'users.update.email' => [ + 'description' => 'This event triggers when the user email address is updated.', + 'model' => Response::MODEL_USER, + 'note' => '', + ], + 'users.update.name' => [ + 'description' => 'This event triggers when the user name is updated.', + 'model' => Response::MODEL_USER, + 'note' => '', + ], + 'users.update.password' => [ + 'description' => 'This event triggers when the user password is updated.', + 'model' => Response::MODEL_USER, + 'note' => '', + ], 'users.update.status' => [ 'description' => 'This event triggers when a user status is updated from the users API.', 'model' => Response::MODEL_USER, From 040dbcc9d52126e5516f3eef457c80aae9d80710 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 30 Aug 2021 16:31:40 +0545 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Eldad A. Fux --- app/config/events.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/config/events.php b/app/config/events.php index 28c97398a..e0e28c729 100644 --- a/app/config/events.php +++ b/app/config/events.php @@ -165,17 +165,17 @@ return [ 'users.update.email' => [ 'description' => 'This event triggers when the user email address is updated.', 'model' => Response::MODEL_USER, - 'note' => '', + 'note' => 'version >= 0.10', ], 'users.update.name' => [ 'description' => 'This event triggers when the user name is updated.', 'model' => Response::MODEL_USER, - 'note' => '', + 'note' => 'version >= 0.10', ], 'users.update.password' => [ 'description' => 'This event triggers when the user password is updated.', 'model' => Response::MODEL_USER, - 'note' => '', + 'note' => 'version >= 0.10', ], 'users.update.status' => [ 'description' => 'This event triggers when a user status is updated from the users API.',