Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9961

Inconsistent activation logs

XMLWordPrintable

      The UCP and ACP create different log entries when an administrator activates an user account. If an administrator activates an user through the ACP both a `user` and `admin` log are created.

      includes/acp/acp_users.php, line:422

       
      $message = ($user_row['user_type'] == USER_INACTIVE) ? 'USER_ADMIN_ACTIVATED' : 'USER_ADMIN_DEACTIVED';
      $log = ($user_row['user_type'] == USER_INACTIVE) ? 'LOG_USER_ACTIVE' : 'LOG_USER_INACTIVE';
       
      add_log('admin', $log, $user_row['username']);
      add_log('user', $user_id, $log . '_USER');
      

      However in includes/ucp/ucp_activate.php only a log entry is created when the user re-acivates his account after a password change.

      However when admin activation is enabled the link the administrator receives points to the ucp activation module instead of the acp one. Therefore there are no logs of the user activation.

            Oleg Oleg [X] (Inactive)
            Erik Frèrejean Erik Frèrejean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: