Despite setting "block" to 0 I cannot create a user who is unblocked. I am able to successfully create users, but I cannot have them be set up from the beginning as unblocked.
$data = array(
"name"=>$name,
"username"=>$username,
"password"=>$password,
"password2"=>$password,
"email"=>$email,
"block"=>0,
"sendEmail"=>0,
"groups"=>$arrGroups
);
If you are wondering why I would ever do this it's because I am confident that users who get this far are not bots.
That's definitely the code for creating unblocked users. $data['block']
should be 0. Are you sure that the user was actually blocked and not something else? Have you checked the row created in the database and checked that the block
field is set to 1?
Are you 100% sure that the above piece of code is the one being executed when the users are created blocked?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.