We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea2f67 commit e8a19e7Copy full SHA for e8a19e7
1 file changed
lib/public/User/Events/UserFirstTimeLoggedInEvent.php
@@ -10,12 +10,13 @@
10
namespace OCP\User\Events;
11
12
use OCP\EventDispatcher\Event;
13
+use OCP\EventDispatcher\IWebhookCompatibleEvent;
14
use OCP\IUser;
15
16
/**
17
* @since 28.0.0
18
*/
-class UserFirstTimeLoggedInEvent extends Event {
19
+class UserFirstTimeLoggedInEvent extends Event implements IWebhookCompatibleEvent {
20
21
22
@@ -31,4 +32,16 @@ public function __construct(
31
32
public function getUser(): IUser {
33
return $this->user;
34
}
35
+
36
+ /**
37
+ * @since 34.0.0
38
+ */
39
+ #[\Override]
40
+ public function getWebhookSerializable(): array {
41
+ return [
42
+ 'user_id' => $this->user->getUID(),
43
+ 'display_name' => $this->user->getDisplayName(),
44
+ 'email' => $this->user->getEMailAddress(),
45
+ ];
46
+ }
47
0 commit comments