User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This is fix for extensions which triggers onUserAfterLogin, onUserAfterLogout, onUserLoginFailure, onUserLogoutFailure events in their code.
Prior Joomla 5 these events had 1 argument, with Joomla 5 they have 2 arguments, to be consisten with onUserLoginEvent and onUserLogiutEvent events.
Add following code, in to index.php of the template:
$e1 = new \Joomla\CMS\Event\User\AfterLoginEvent('onFooBar', [['option' => 1]]);
$e2 = new \Joomla\CMS\Event\User\LoginFailureEvent('onFooBar', [['user' => 1]]);
$e3 = new \Joomla\CMS\Event\User\LogoutFailureEvent('onFooBar', [['user' => 1]]);
dd($e1, $e2, $e3);
An error page.
Dump of event objects, on blank page.
Please select:
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
Labels |
Added:
bug
PR-5.1-dev
|
I have tested this item ✅ successfully on 0cfd120
Status | Pending | ⇒ | Ready to Commit |
RTC
Title |
|
Labels |
Added:
RTC
PR-5.2-dev
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-09-11 22:12:29 |
Closed_By | ⇒ | Hackwar |
I have tested this item ✅ successfully on 0cfd120
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43934.