Skip to content

Commit 144420a

Browse files
authored
[3.9][plg_actionlogs] self activate account (#30725)
* self activate account * self activation
1 parent 51f9085 commit 144420a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

administrator/language/en-GB/en-GB.plg_actionlog_joomla.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ PLG_ACTIONLOG_JOOMLA_USER_LOGEXPORT="User <a href='{accountlink}'>{username}</a>
4242
PLG_ACTIONLOG_JOOMLA_USER_LOGGED_IN="User <a href='{accountlink}'>{username}</a> logged in to {app}"
4343
PLG_ACTIONLOG_JOOMLA_USER_LOGGED_OUT="User <a href='{accountlink}'>{username}</a> logged out from {app}"
4444
PLG_ACTIONLOG_JOOMLA_USER_LOGIN_FAILED="User <a href='{accountlink}'>{username}</a> tried to login to {app}"
45+
PLG_ACTIONLOG_JOOMLA_USER_REGISTRATION_ACTIVATE ="User <a href='{accountlink}'>{username}</a> activated the account"
4546
PLG_ACTIONLOG_JOOMLA_USER_REGISTERED="User <a href='{accountlink}'>{username}</a> registered for an account"
4647
PLG_ACTIONLOG_JOOMLA_USER_REMIND="User <a href='{accountlink}'>{username}</a> requested a username reminder for their account"
4748
PLG_ACTIONLOG_JOOMLA_USER_RESET_COMPLETE="User <a href='{accountlink}'>{username}</a> completed the password reset for their account"

plugins/actionlog/joomla/joomla.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,13 @@ public function onUserAfterSave($user, $isnew, $success, $msg)
616616
$messageLanguageKey = 'PLG_ACTIONLOG_JOOMLA_USER_RESET_COMPLETE';
617617
$action = 'resetcomplete';
618618
}
619+
620+
// Registration Activation
621+
if ($task === 'registration.activate')
622+
{
623+
$messageLanguageKey = 'PLG_ACTIONLOG_JOOMLA_USER_REGISTRATION_ACTIVATE';
624+
$action = 'activaterequest';
625+
}
619626
}
620627
elseif ($isnew)
621628
{

0 commit comments

Comments
 (0)