From: Tim Düsterhus Date: Wed, 13 Oct 2021 09:26:57 +0000 (+0200) Subject: Document the UserLoggedIn event X-Git-Tag: 5.6.final~133^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d32161c1c61926f069d162e87c0c9a1173da72c;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Document the UserLoggedIn event --- 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