Work for Oauth

This commit is contained in:
Deon George
2013-05-23 15:42:56 +10:00
parent c06068fc90
commit ab1adad456
7 changed files with 415 additions and 52 deletions

View File

@@ -40,12 +40,22 @@ class lnApp_Controller_Login extends Controller_TemplateDefault {
}
}
$output .= View::factory('pages/login');
$oauthlogin = is_null($x=Session::instance()->get_once('login-no-oauth',NULL)) ? TRUE : ! $x;
$output .= View::factory('pages/login')
->set('oauth',$oauthlogin);
Style::factory()
->type('file')
->data('media/theme/baseadmin/css/pages/login.css');
Style::factory()
->type('file')
->data('media/css/auth-buttons.css');
if ($oauthlogin)
foreach (ORM::factory('Oauth')->list_active() as $oo)
$output .= $oo->plugin()->html();
$this->template->content = $output;
$this->template->shownavbar = FALSE;
}