diff --git a/admin/controllers/configure-plugin.php b/admin/controllers/configure-plugin.php index d1c1c9f4..13039d16 100644 --- a/admin/controllers/configure-plugin.php +++ b/admin/controllers/configure-plugin.php @@ -32,7 +32,7 @@ if($_Plugin===false) { } // Check if the plugin has the method form() -if($_Plugin->form()===false) { +if(!method_exists($_Plugin, 'form')) { Redirect::page('admin', 'plugins'); } diff --git a/admin/controllers/login.php b/admin/controllers/login.php index eb6d5cfc..60227b2e 100644 --- a/admin/controllers/login.php +++ b/admin/controllers/login.php @@ -18,10 +18,8 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' ) { - $username = Sanitize::html($_POST['username']); - $password = Sanitize::html($_POST['password']); - - if( $Login->verifyUser($username, $password) ) + // Verify User sanitize the input + if( $Login->verifyUser($_POST['username'], $_POST['password']) ) { Redirect::page('admin', 'dashboard'); } diff --git a/admin/themes/default/index.php b/admin/themes/default/index.php index fd29a602..02113bb6 100644 --- a/admin/themes/default/index.php +++ b/admin/themes/default/index.php @@ -15,12 +15,12 @@ - + - +