This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/application/classes/Model/Auth/UserDefault.php

43 lines
1010 B
PHP
Raw Normal View History

2010-11-30 09:41:08 +11:00
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
2013-03-20 09:35:19 +11:00
*
* @package OSB
2010-11-30 09:41:08 +11:00
* @category Models
* @author Deon George
2013-03-20 09:35:19 +11:00
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
2010-11-30 09:41:08 +11:00
*/
class Model_Auth_UserDefault extends Model_Auth_User {
// Validation rules
2011-05-14 17:35:33 +10:00
public function rules() {
return array(
'username' => array(
array('not_empty'),
array('min_length', array(':value', 4)),
2013-06-13 23:35:19 +10:00
array('max_length', array(':value', 256)),
2011-05-14 17:35:33 +10:00
),
'email' => array(
array('not_empty'),
array('min_length', array(':value', 4)),
array('max_length', array(':value', 127)),
array('email'),
),
);
}
2010-11-30 09:41:08 +11:00
2013-05-10 20:48:10 +10:00
/**
2010-11-30 09:41:08 +11:00
* Complete our login
*
* For some database logins, we may not want to record the user last login
* details in the repository, so we just override that parent function
* here.
*
* We can also do some other post-login actions here.
*/
2011-09-27 21:22:13 +10:00
public function complete_login() {
return $this->log('Logged In');
}
2010-11-30 09:41:08 +11:00
}
2011-08-16 12:27:19 +10:00
?>