summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-04-20 16:04:33 +0000
committeralecpl <alec@alec.pl>2010-04-20 16:04:33 +0000
commit3544558f2d1b7b53de77f5ea373850dce8b05947 (patch)
treef0959fdf964bbf4fca23776c89bfc2c273ffbb3c /index.php
parentc57689316780595f69bcff4ad334190bb428729a (diff)
- Add HTTP_X_REAL_IP and HTTP_X_FORWARDED_FOR to successful logins log (#1486441)
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/index.php b/index.php
index d3cf06f0a..43cf7c413 100644
--- a/index.php
+++ b/index.php
@@ -103,12 +103,7 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') {
$RCMAIL->authenticate_session();
// log successful login
- if ($RCMAIL->config->get('log_logins')) {
- write_log('userlogins', sprintf('Successful login for %s (id %d) from %s',
- $RCMAIL->user->get_username(),
- $RCMAIL->user->ID,
- $_SERVER['REMOTE_ADDR']));
- }
+ rcmail_log_login();
// restore original request parameters
$query = array();