Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
it is my opinion that user_password() should be called in userplus.module to ensure a default password is created in the case one is not provided.
My userplus module has been modified in ways that don't fit the project, so I haven't attached a patch. I'll try to do so once I've removed unnecessary code from my copy of the module.
Comment | File | Size | Author |
---|---|---|---|
#1 | userplus.module.patch | 404 bytes | dnotes |
Comments
Comment #1
dnotes CreditAttribution: dnotes commented+1 for this: still an issue in 2.3 and 2.x-dev, and it's so important that I feel it's actually a bug in the module - I created 3 accounts today and the email was sent with "password: !password" - bad form IMHO. Here's a patch based on 2.3 version.
Comment #2
nonzero CreditAttribution: nonzero commentedUse strlen instead in the rare case that the password is cast to a boolean false.
Comment #3
marcp CreditAttribution: marcp commentedThanks very much for this. I added a minor tweak so a default password gets created when the password field is filled with whitespace.