Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[ticket/9961] Create log entries when users are activated. #163

Merged
merged 1 commit into from

2 participants

@erikfrerejean
  • Create log entries when a user activates own account without
    also changing their password.

  • Additionally create admin log entries when an administrator activates
    user accounts.

PHPBB3-9961

(http://tracker.phpbb.com/browse/PHPBB3-9961)

@erikfrerejean erikfrerejean [ticket/9961] Create log entries when users are activated.
 * Create log entries when a user activates own account without
   also changing their password.

 * Additionally create admin log entries when an administrator activates
   user accounts.

PHPBB3-9961
1d22019
@p p merged commit 1d22019 into phpbb:develop-olympus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 19, 2011
  1. @erikfrerejean

    [ticket/9961] Create log entries when users are activated.

    erikfrerejean authored
     * Create log entries when a user activates own account without
       also changing their password.
    
     * Additionally create admin log entries when an administrator activates
       user accounts.
    
    PHPBB3-9961
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 0 deletions.
  1. +7 −0 phpBB/includes/ucp/ucp_activate.php
View
7 phpBB/includes/ucp/ucp_activate.php
@@ -98,6 +98,13 @@ function main($id, $mode)
SET user_actkey = ''
WHERE user_id = {$user_row['user_id']}";
$db->sql_query($sql);
+
+ // Create the correct logs
+ add_log('user', $user_row['user_id'], 'LOG_USER_ACTIVE_USER');
+ if ($auth->acl_get('a_user'))
+ {
+ add_log('admin', 'LOG_USER_ACTIVE', $user_row['username']);
+ }
}
if ($config['require_activation'] == USER_ACTIVATION_ADMIN && !$update_password)
Something went wrong with that request. Please try again.