The @code doxygen example for creating a new user using drupal_form_submit() has a bug. It will create a new user but this user's password will not be set correctly. The password will be 'p' instead of 'password'. The attached patch fixes this code sample. This also exists in D6 and D5 with drupal_execute() so it should be backported after it is committed to HEAD.

CommentFileSizeAuthor
#3 640050.patch802 bytesgdd
dfs_dox.patch883 bytesgdd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks.

gdd’s picture

Version: 7.x-dev » 6.x-dev
Status: Fixed » Active

Resetting to 6.x for backport, will throw up a patch later.

gdd’s picture

Status: Active » Needs review
FileSize
802 bytes

Updated patch for 6.x

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me. I've verified the password form fields are the same in D6, and the patch applies cleanly and does what it is supposed to do.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to Drupal 6.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.