Updated bootstrap and many other items

This commit is contained in:
Deon George
2014-09-29 14:47:51 +10:00
parent 85150c655c
commit 9ae0980221
27 changed files with 999 additions and 66 deletions

22
classes/lnApp/Auth.php Normal file
View File

@@ -0,0 +1,22 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class overrides Kohana's Auth
*
* This file contains enhancements for Kohana, that should be considered upstream and maybe havent been yet.
*
* @package lnApp
* @category Modifications
* @author Deon George
* @copyright (c) 2014 Deon George
* @license http://dev.leenooks.net/license.html
*/
abstract class lnApp_Auth extends Kohana_Auth {
protected $_model = 'Account';
public function get_user($default=NULL) {
$x = parent::get_user($default);
return (! $x) ? ORM::factory($this->_model) : $x;
}
}