[英]can't create new drupal 6 nodes, as another user, using drupal_execute
[英]Problem with drupal_execute for user_register and password field
我目前正在使用Drupal函数drupal_execute来注册用户,但是密码值似乎仅在保存在数据库中时记录第一个密码。
$form_state = array();
$form_state['values'] = array(
'name' => strtolower(preg_replace("'\W'", "", $person->firstName) . $person->entityId),
'mail' => $person->emailPrimary,
'pass' => user_password(),
'status' => 1,
'roles' => $roles,
'notify' => 1,
);
drupal_execute('user_register', $form_state, NULL);
打印出form_state数组表明密码设置正确,长度为10个字符。
任何人都可以阐明为什么仅将传递值的第一个字符保存到数据库吗?
谢谢。 G
请检查数据库字段中的密码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.