Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Done] Logging Request  (Read 14106 times)

0 Members and 1 Guest are viewing this topic.

406man

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 46
[Done] Logging Request
« on: June 21, 2012, 01:44:08 pm »

Several of the users of my gallery have had problems due to being banned. On the face of it, there’s no reason for them to have been banned and the Bans part of the admin interface shows the ban not being in effect. But they still can’t log in.  Unfortunately I can’t gather sufficient information to be confirm that there is a problem with Coppermine rather than the users having finger trouble.

So what I’m requesting – this is a feature request, not a request for support – is more logging related to bans. For example, an entry in the log file every time a user does something  that will contribute towards a ban. It should have the date, time, IP address and username. Also an entry when the user tries to log in even though they are banned. Again containing date, time, IPaddress and username.
« Last Edit: May 16, 2013, 11:15:49 am by Αndré »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Logging Request
« Reply #1 on: June 21, 2012, 03:00:08 pm »

The security log currently looks like
Quote
Jun 21, 2012 at 12:49 PM - Failed login attempt with Username: test

so we just need to add the IP address like it's done here:
Quote
Jun 21, 2012 at 12:52 PM - Denied privileged access to admin.php by user Guest at IP 127.0.0.1
right?

You can apply that change immediately. Open login.php, find
Code: [Select]
log_write("Failed login attempt with Username: " . $superCage->post->getEscaped('username'), CPG_SECURITY_LOG);and replace with
Code: [Select]
log_write("Failed login attempt at IP $hdr_ip with Username: " . $superCage->post->getEscaped('username'), CPG_SECURITY_LOG);
As far as I know failed login attempts are the only way to ban yourself.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Logging Request
« Reply #2 on: May 16, 2013, 11:15:39 am »

Committed change in SVN revision 8568.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.