From 6d32161c1c61926f069d162e87c0c9a1173da72c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 13 Oct 2021 11:26:57 +0200 Subject: [PATCH] Document the UserLoggedIn event --- docs/migration/wsc54/php.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/migration/wsc54/php.md b/docs/migration/wsc54/php.md index 89a6d6f9..9928e8de 100644 --- a/docs/migration/wsc54/php.md +++ b/docs/migration/wsc54/php.md @@ -253,6 +253,20 @@ final class ValueDumpListener See [WoltLab/WCF#4000](https://github.com/WoltLab/WCF/pull/4000) and [WoltLab/WCF#4265](https://github.com/WoltLab/WCF/pull/4265) for details. +## Authentication + +The [`UserLoggedIn`](https://github.com/WoltLab/WCF/blob/master/wcfsetup/install/files/lib/system/user/authentication/event/UserLoggedIn.class.php) event was added. +You should fire this event if you implement a custom login process (e.g. when adding additional external authentication providers). + +Example: + +```php +EventHandler::getInstance()->fire( + new UserLoggedIn($user) +); +``` + +See [WoltLab/WCF#4356](https://github.com/WoltLab/WCF/pull/4356) for details. ## Embedded Objects in Comments -- 2.20.1