bludit/admin/controllers/login.php

16 lines
361 B
PHP
Raw Normal View History

2015-03-27 02:00:01 +01: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-15 00:07:45 +02:00
else
{
2015-07-22 05:15:02 +02:00
Alert::set($Language->g('Username or password incorrect'));
2015-05-15 00:07:45 +02:00
}
2015-07-14 06:41:32 +02:00
}