includes/sessions.php
changeset 1176 5c98b9f181f0
parent 1175 1e2c9819ede3
child 1205 c922ef08167a
child 1317 6012710ae538
equal deleted inserted replaced
1175:1e2c9819ede3 1176:5c98b9f181f0
   864       // Do we also need to increment the lockout countdown?
   864       // Do we also need to increment the lockout countdown?
   865       if ( !defined('IN_ENANO_INSTALL') && getConfig('lockout_policy', 'lockout') !== 'disable' )
   865       if ( !defined('IN_ENANO_INSTALL') && getConfig('lockout_policy', 'lockout') !== 'disable' )
   866       {
   866       {
   867         $ipaddr = $db->escape($_SERVER['REMOTE_ADDR']);
   867         $ipaddr = $db->escape($_SERVER['REMOTE_ADDR']);
   868         // increment fail count
   868         // increment fail count
   869         $this->sql('INSERT INTO '.table_prefix.'lockout(ipaddr, timestamp, action) VALUES(\'' . $ipaddr . '\', ' . time() . ', \'credential\', \'' . $db->escape($username) . '\');');
   869         $this->sql('INSERT INTO '.table_prefix.'lockout(ipaddr, timestamp, action, username) VALUES(\'' . $ipaddr . '\', ' . time() . ', \'credential\', \'' . $db->escape($username) . '\');');
   870       }
   870       }
   871         
   871         
   872       return array(
   872       return array(
   873         'success' => false,
   873         'success' => false,
   874         'error' => 'invalid_credentials'
   874         'error' => 'invalid_credentials'