koblog/admin/controllers/login.php

16 lines
361 B
PHP
Raw Normal View History

2015-03-27 01:00:01 +00:00
<?php defined('BLUDIT') or die('Bludit CMS.');
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
{
$username = Sanitize::html($_POST['username']);
$password = Sanitize::html($_POST['password']);
if( $Login->verifyUser($username, $password) )
{
Redirect::page('admin', 'dashboard');
}
2015-05-14 22:07:45 +00:00
else
{
2015-07-22 00:15:02 -03:00
Alert::set($Language->g('Username or password incorrect'));
2015-05-14 22:07:45 +00:00
}
2015-07-14 01:41:32 -03:00
}