Notification email on admin registration approval#20282
Notification email on admin registration approval#20282carlitorweb wants to merge 32 commits intojoomla:stagingfrom carlitorweb:email_admin_registration
Conversation
|
That is a good point @brianteeman . Thank you. I will work on that way. |
|
@carlitorweb you might find the second half of this blog post (and the comments) useful https://brian.teeman.net/joomla/870-authorising-and-approving-joomla-users Thanks for working on this |
|
Really have good comments that blog post. Carlos found an easy and good way for this https://github.com/carcam/plg_user_sendactivationmail/blob/master/sendactivation/sendactivationmail.php . |
| <?php echo $field->input; ?> | ||
| <?php // If the user has not logged into the site for the first time, then either an administrator has not activated it ?> | ||
| <?php // Or in some way the notification mail has not been received yet ?> | ||
| <?php if($field->fieldname == 'name' && $this->form->getValue('lastvisitDate') === JFactory::getDbo()->getNullDate()) : ?> |
| { | ||
| // Check for request forgeries. | ||
| JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); | ||
|
|
| public function activate() | ||
| { | ||
| // Check for request forgeries. | ||
| JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); |
There was a problem hiding this comment.
Also line 99 with trailing tabs.
| { | ||
| $dispatcher = JEventDispatcher::getInstance(); | ||
| $user = JFactory::getUser(); | ||
| $config = JFactory::getConfig(); |
|
@brianteeman what you think? (the warning: Could not start mail function, is because of a wrong config on my local) |
|
I'm on my phone but the button says send email? And it activates and sends email? If so then I personally would just call the button "activate" To me that would be the expected behaviour |
|
Yes, send email, but active at same time, because if send an email saying to the user can log in now, then that user need be activated for that. |
|
Done. Thank again @Quy |
| { | ||
| $dispatcher = JEventDispatcher::getInstance(); | ||
| $user = JFactory::getUser(); | ||
| $user = JFactory::getUser(); |
|
I still think the text on the button is a little unclear The admin might think that they have to scroll down and click activate (like they did before) and then click on the button to send the email. When in fact the button (correctly) does both. So I would prefer something like |
| COM_USERS_USER_OTEPS="One time emergency passwords" | ||
| COM_USERS_USER_OTEPS_DESC="If you do not have access to your two factor authentication device you can use any of the following passwords instead of a regular security code. Each one of these emergency passwords is immediately destroyed upon use. We recommend printing these passwords out and keeping the printout in a safe and accessible location, eg your wallet or a safety deposit box." | ||
| COM_USERS_USER_OTEPS_WAIT_DESC="There are no emergency one time passwords generated in your account. The passwords will be generated automatically and displayed here as soon as you activate two factor authentication." | ||
| COM_USERS_USER_RESEND_BUTTONTEXT="Resend a notification email" |
There was a problem hiding this comment.
==> "Resend activation email"
|
This commit performs this task through ajax. In this way, the user no need redirect to the com_users list. I will fix the drone errors |
|
It would be really great if someone could port this to joomla 4 |
|
Removed RTC. To be rebased for J4. |
|
Error "The file marked for modification does not exist: administrator/components/com_users/controllers/user.php" displayed on applying the patch This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20282. |
|
@ashvini77 This PR is for Joomla 3 were you testing on Joomla 4? |
|
Dear @carlitorweb in preperation of the upcomming release of Joomla 3.10 we have used GitHubs rename feature to rename the staging branch into 3.10-dev. Usually GitHub moves all existing PRs towards the new branch just fine, but here it didnt work. The reason seems to be that the fork of the CMS that was used as base for this PR has been deleted so GitHub does no longer have a base to rebase the PR against the new branch and we are also not able to reopen the PR. For that reason GitHub closed this PR in my name, when this issue is still valid It would require a new PR against the new 3.10-dev or 4.0-dev branch. |
|
@zero-24 Understood. And is correct I deleted that fork. If this PR is still considered, what should I do? |
|
When this is still a feature you would like to have please create a PR against 4.1-dev so it can be tested and @bembelimen can take it into 4.1. |
|
Is this feature still being worked on? I have I site where this 'send registration email' button could be very useful ;-) |
|
We would also appreciate a working solution for this. |
|
I am using this plugin now https://github.com/Spudley/plg_user_notifyactivation |
|
Still an issue in Joomla 5.x This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20282. |


Pull Request for Issue #13620
Summary of Changes
Sending a notification email, after an Admin activate a user/users, on the user's list of com_users
Testing Instructions
Expected result
An email is sent to the user, notifying him that it has been approved on the site
Actual result
The user is activated but is not notified of this change
Request for feedback (SOLVED)
This change also requires that within the user edit view, a button appears that allows an administrator to activate the user from there.
For this, I added a new radio field "activation" for handle this under Accounts Details, but this field store a hash when the user It is registered in the site then this new field is not convenient.

I can create a new field under the params fields, and handle this as a param, but I not think this need be under the Basic Settings tab.
So, my doubt is, What is the best way to treat this?
Documentation Changes Required