Replace status with active in tables

This commit is contained in:
Deon George
2016-08-31 15:03:09 +10:00
parent 34e1e40f04
commit 54e4425aa8
51 changed files with 95 additions and 159 deletions

View File

@@ -18,7 +18,7 @@ class Controller_Oauth extends Controller_TemplateDefault {
public function action_login() {
// Make sure we are called with a valid oauth plugin
$oo = ORM::factory('Oauth',array('name'=>$this->request->param('id')));
if (! $oo->loaded() OR ! $oo->status)
if (! $oo->loaded() OR ! $oo->active)
HTTP::redirect('login');
$auth = Auth::instance($oo);
@@ -47,7 +47,7 @@ class Controller_Oauth extends Controller_TemplateDefault {
public function action_link() {
// Make sure we are called with a valid oauth plugin
$oo = ORM::factory('Oauth',array('name'=>$this->request->param('id')));
if (! $oo->loaded() OR ! $oo->status)
if (! $oo->loaded() OR ! $oo->active)
HTTP::redirect('login');
// Since we have logged in, get our user details