equal
deleted
inserted
replaced
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' |