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 887dfeb commit caf2fcdCopy full SHA for caf2fcd
1 file changed
lib/public/User/Events/UserFirstTimeLoggedInEvent.php
@@ -9,12 +9,13 @@
9
namespace OCP\User\Events;
10
11
use OCP\EventDispatcher\Event;
12
+use OCP\EventDispatcher\IWebhookCompatibleEvent;
13
use OCP\IUser;
14
15
/**
16
* @since 28.0.0
17
*/
-class UserFirstTimeLoggedInEvent extends Event {
18
+class UserFirstTimeLoggedInEvent extends Event implements IWebhookCompatibleEvent {
19
20
21
@@ -30,4 +31,16 @@ public function __construct(
30
31
public function getUser(): IUser {
32
return $this->user;
33
}
34
+
35
+ /**
36
+ * @since 34.0.0
37
+ */
38
+ #[\Override]
39
+ public function getWebhookSerializable(): array {
40
+ return [
41
+ 'user_id' => $this->user->getUID(),
42
+ 'display_name' => $this->user->getDisplayName(),
43
+ 'email' => $this->user->getEMailAddress(),
44
+ ];
45
+ }
46
0 commit comments