silverstripe-framework/security/LoginAttempt.php
Ingo Schommer b8adcd8aad (merged from branches/roa. use "svn log -c <changeset> -g <module-svn-path>" for detailed commit message)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60289 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-11 00:21:44 +00:00

31 lines
688 B
PHP

<?php
/**
* Record all login attempts through the {@link LoginForm} object.
* This behaviour is disabled by default.
*
* Enable through a setting in your _config.php:
* <code>
* Security::set_login_recording(true);
* </code>
*
* 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
);
}
?>