From 19dc8e5ec96d89bd4186f41b265e18a03fde9fcb Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 27 Oct 2023 11:22:45 +0200 Subject: [PATCH] Plugin: OAuth2: Add event log when updating user --- plugin/oauth2/src/OAuth2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/oauth2/src/OAuth2.php b/plugin/oauth2/src/OAuth2.php index aebbaa09bb..09f7c40949 100644 --- a/plugin/oauth2/src/OAuth2.php +++ b/plugin/oauth2/src/OAuth2.php @@ -303,6 +303,8 @@ class OAuth2 extends Plugin if ('true' === $this->get(self::SETTING_UPDATE_USER_INFO)) { $this->updateUser($userId, $response); $this->updateUserUrls($userId, $response); + + Event::addEvent(LOG_USER_UPDATE, LOG_USER_ID, $userId); } } $userInfo = api_get_user_info($userId);