Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.

This commit is contained in:
Tim Almdal
2009-10-16 10:06:58 -07:00
parent bc241e44c2
commit 78ee4193b7
41 changed files with 194 additions and 176 deletions

View File

@@ -103,7 +103,7 @@ class Server_Add_Controller extends Admin_Controller {
access::verify_csrf();
$task = ORM::factory("task", $task_id);
if (!$task->loaded || $task->owner_id != Identity::active()->id) {
if (!$task->loaded || $task->owner_id != Session::active_user()->id) {
access::forbidden();
}
@@ -207,7 +207,7 @@ class Server_Add_Controller extends Admin_Controller {
$task->set("mode", "done");
}
$owner_id = Identity::active()->id;
$owner_id = Session::active_user()->id;
foreach ($entries as $entry) {
if (microtime(true) - $start > 0.5) {
break;