I'm manually creating a user and then sending a notification email as follows:
$new_user = array(
'name' => $username,
'pass' => $password,
'mail' => $email,
'status' => 1,
'init' => $email,
);
$account = user_save(drupal_anonymous_user(), $new_user);
_user_mail_notify('register_no_approval_required', $account);
However, the user is able to login right away. How can I enforce account activation? I have it enabled in the admin panel
status
to0
means the user is blocked.