Updated font-awesome and bootstrap
This commit is contained in:
@@ -16,6 +16,9 @@ class lnApp_Controller_Login extends Controller_TemplateDefault {
|
||||
public function action_index() {
|
||||
$output = '';
|
||||
|
||||
if (! array_key_exists('auth',Kohana::modules()))
|
||||
throw HTTP_Exception::factory(501,'Auth not enabled.');
|
||||
|
||||
// If user already signed-in
|
||||
if (Auth::instance()->logged_in())
|
||||
HTTP::redirect(URL::link('user','welcome/index'));
|
||||
@@ -35,7 +38,7 @@ class lnApp_Controller_Login extends Controller_TemplateDefault {
|
||||
} else {
|
||||
SystemMessage::factory()
|
||||
->title(_('Invalid username or password'))
|
||||
->type('error')
|
||||
->type('danger')
|
||||
->body(_('The username or password was invalid.'));
|
||||
}
|
||||
}
|
||||
@@ -48,10 +51,6 @@ class lnApp_Controller_Login extends Controller_TemplateDefault {
|
||||
$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');
|
||||
@@ -67,7 +66,7 @@ class lnApp_Controller_Login extends Controller_TemplateDefault {
|
||||
public function action_noaccess() {
|
||||
SystemMessage::factory()
|
||||
->title(_('No access to requested resource'))
|
||||
->type('error')
|
||||
->type('danger')
|
||||
->body(_('You do not have access to the requested resource, please contact your administrator.'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user