If plugins return false when login, should mark as failure.#22936
If plugins return false when login, should mark as failure.#22936HLeithner merged 5 commits intojoomla:stagingfrom
Conversation
|
|
||
| // The user is successfully logged in. Run the after login events | ||
| $this->triggerEvent('onUserAfterLogin', array($options)); | ||
|
|
|
Did you check what happens if one login works (e.g. the default Joomla! login) and another fails...? Is the user logged in after? |
|
Must test in a custom plugin or custom login code. This issue will only happened if a developer attempts to use I'm still thinking how to attach simple code to reproduce this issue. |
|
@asika32764 whats the state of this Pull Request? |
|
To reproduce the issue in core: Enable |
|
I have tested this item ✅ successfully on c6fccec This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22936. |
|
@SharkyKZ thanks for the clear Test Instructions. At CloudAccess i have to upgrade to unlock Logs, so can't test. |
|
Thanks @SharkyKZ I'm trying to create a plugin to reproduce this issue but your way is more simpler to test. |
|
I have tested this item ✅ successfully on e5a7c2d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22936. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22936. |
|
thx |
Move the return line into if block.
I found that if plugin return FALSE from
onUserBeforeLogin, Application will still return true. This situation should mark as failure and gotoonUserLoginFailure.