* Security::set_login_recording(true); * * * Caution: Please make sure that enabling logging * complies with your privacy standards. We're logging * username and IP. * * @package sapphire * @subpackage security */ class LoginAttempt extends DataObject { static $db = array( 'Email' => 'Varchar(255)', 'Status' => "Enum('Success,Failure')", 'IP' => 'Varchar(255)', ); static $has_one = array( 'Member' => 'Member', // only linked if the member actually exists ); } ?>