$users = Users::find( array( "conditions" => "username = ?1", "bind" => array(1 => $username) ) );
$users = $users->toArray();
Array ( [0] => Array ( [id] => 1 [role] => Administrator [firstname] => not filled [lastname] => not filled [email] => not filled [birthday] => not filled [sex] => not filled [username] => admin [password] => $2a$08$O1BmDY2XkgwjTB1UOEU4DemXMJKtN//TlK4CTvbpBh6 [logins] => 0 [last_login] => 0 ) )
$users = Users::find( array( "conditions" => "username = ?1 AND password = ?2", "bind" => array(1 => $username, 2 => $password) ) );