Roundcube Community Forum

Release Support => Requests => Topic started by: astrosmf on August 23, 2008, 01:30:11 AM

Title: extra logs added...
Post by: astrosmf on August 23, 2008, 01:30:11 AM
hey crew... i would LOVE it if one of you could create a script for me that would add the following logs in the existing /logs folder

LOGIN - a seperate file that logs when someone logs in... in the following example
Code: [Select]
[20-Aug-2008 15:55:46 -0600] testuser@domainexample.com LOGIN SUCCESSFUL

PASSWORD - a seperate file that logs when a user changes password... in the following example
Code: [Select]
[20-Aug-2008 15:55:46 -0600] testuser@domainexample.com PW SUCCESSFUL

This would be a huge help... would greatly appreciate it...
Title: extra logs added...
Post by: JohnDoh on August 23, 2008, 05:09:13 AM
Hi. look for log_logins in your config file, this option was added before the 0.2a release. Loging changes to passwords would have to be done as part of your change password patch but it should be easy to add. Something like this should do it:

Code: [Select]

write_log('password', $_SESSION['username'].' PW SUCCESSFUL');
Title: extra logs added...
Post by: astrosmf on August 23, 2008, 11:54:59 AM
Quote from: JohnDoh;13458
Hi. look for log_logins in your config file, this option was added before the 0.2a release. Loging changes to passwords would have to be done as part of your change password patch but it should be easy to add. Something like this should do it:

Code: [Select]

write_log('password', $_SESSION['username'].' PW SUCCESSFUL');


the log_logins worked perfectly...

where would you throw the PW code in?
Title: extra logs added...
Post by: JohnDoh on August 24, 2008, 04:45:44 AM
Put it in the file that does the actual changeing of the password, right after the password has been changed.