User tests: Successful: Unsuccessful:
Pull Request for Issue #39062.
generate proper event
see #39435
the events are correctly logged in Action Logged
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Category | ⇒ | Front End Plugins |
Status | New | ⇒ | Pending |
Category | Front End Plugins | ⇒ | Front End com_users Plugins |
Labels |
Added:
?
|
Title |
|
Surely, adding new events is not necessary to fix the reported issue?
I have tested this item
Thanks, now it works as it should.
I have tested this item
Hmm there is a comment with a valid concern: #39435 (comment) . We should not add new events when it‘s not needed.
What's the scope of the Events then ?
Labels |
Added:
?
|
in the previous version 3 it was used onUserAfterSave
but 1st is not logical 2nd no separation of concerns, and 3rd not readable code
I think it is fine to create new events for thinks like this, but it should be consisted overt the whole process
I have tested this item
I re-tested after the changes - everything works. Thank you.
I hope this doesn't get stuck and gets merged.
I have tested this item
I think it is fine to create new events for thinks like this, but it should be consisted overt the whole process
@alikon If I understand @rdeutz 's comment right, he means that if we add events onUserAfterResetRequest
and onUserAfterResetComplete
, there should also be events onUserBeforeResetRequest
and onUserBeforeResetComplete
added, even if currently not used. @rdeutz Is my understanding right, and should this be done with this PR here?
@richard67 yes and yes.
added the Before
events
I tested again. At the moment, the PR is broken, something needs to be fixed (problem after the last changes). A request to remind the login comes to the mail, a request to change the password does not. I tried several times.
I have tested this item
Sorry, it works. Sending a successful test.
Why did it happen that at first it did not work: I created a user and, in addition to the "Registered" group, added him to the Superusers group. The system does NOT send a password change request for a group of Superusers (which is strange because I have seen error lines for superusers who want to change the password). In this case, the system proceeds to the next stage - entering a login / confirmation code, but nothing comes to the mail. Well, that's a bug for a separate fix.
As soon as I removed the user from the superuser group, everything began to work. Everything is displayed correctly in the action log.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
Removed: ? |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-03-07 10:46:51 |
Closed_By | ⇒ | roland-d |
Thank you
please fill out PR info properly.