Work for Oauth
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user