[wp-hackers] No sufficient privileges

Tassoman (mailing) ml at tassoman.com
Sat Dec 23 22:36:10 GMT 2006


Hi to all,
        I'm still managing with automatic user creation.

I'm creating users using that code:

$userclean = sanitize_user($username, true);
$userclean = apply_filters('pre_user_login', $userclean);
require_once(ABSPATH . "wp-includes/registration-functions.php");
wp_create_user($userclean, $password, $vb_user['email']);

the result seem a correct user creation in wp_users and enough usermeta
rows:

20 wp_capabilities a:1:{s:11:"contributor";b:1;}
20 nickname prova

But while i try to login, I'm blocked for a lack of user privileges... ?
Some help? I'm stuck.

-- 
Blogging humanum est, Tassoman ovest.
http://blog.tassoman.com



More information about the wp-hackers mailing list