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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 640050.patch | 802 bytes | gdd |
| dfs_dox.patch | 883 bytes | gdd |
Comments
Comment #1
dries commentedCommitted to CVS HEAD. Thanks.
Comment #2
gddResetting to 6.x for backport, will throw up a patch later.
Comment #3
gddUpdated patch for 6.x
Comment #4
jhodgdonLooks 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.
Comment #5
gábor hojtsyThanks, committed to Drupal 6.