instead of:
$result=$db->num_rows("SELECT * FROM user WHERE pseudo='$username'
AND pass=$password");
$this->ajax_mode( true, true );
if($result==1){
User::login($username, $password, $enable_cookies = true,
get("logout"));
just do
if( User::get_user_id() )
echo 'ok';
else
echo 'error';
Because in the application_bootstrap.php class, is called the method
loader::login() that authenticate the user.
Let us know if you still have problem.
We will publish soon the new version of the framework, with more
examples and probably new video tutorial