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.
Is the 'Generated password' message actually needed? Maybe for admins, or roles with administer users permissions, but I can't see why anonymous users have to see this. Why not throw a if(user_access('administer users'))
around it?
Comment | File | Size | Author |
---|---|---|---|
#7 | patch_commit_39eb94029419.patch | 3.1 KB | Lukas von Blarer |
#6 | remove_pawword_msg-405774-5.patch | 1.13 KB | yogesh1110 |
#5 | remove_pawword_msg-405774-5.patch | 1.13 KB | yogesh1110 |
Comments
Comment #1
japanitrat CreditAttribution: japanitrat commentedhm i guess we had this for testing purposes on both forms (registration / admin user-add). You're right, its not needed on the regular registration form. On the other hand, it makes sense if the admin selected "optional password" instead of "no password fields". So maybe the messages should be more descriptive for normal user registrations.
my proposals for regular user registration forms:
The password display option could also be configurable in the settings.
Comment #2
yingtho CreditAttribution: yingtho commentedI agree with the proposal.
Comment #3
joelstein CreditAttribution: joelstein commentedThe UI was cleaned up a bit in this ticket #772690: Module revamp and the latest release.
Comment #5
yogesh1110 CreditAttribution: yogesh1110 commentedHere is the patch to display password message based on permission 'administer users'
Comment #6
yogesh1110 CreditAttribution: yogesh1110 commentedHere is the patch to display password message based on permission 'administer users'
Comment #7
Lukas von BlarerI wrote a patch for D7 that adds a option to disable these messages globally.
Comment #8
joelstein CreditAttribution: joelstein commentedThanks for these ideas. I added this functionality as a configurable option on the settings page (for both D6 & D7). You can set it to hide the passwords, show only when admins are creating accounts, show only when users are creating their own accounts, or both.
D7: http://drupalcode.org/project/genpass.git/commit/7db2748
D6: http://drupalcode.org/project/genpass.git/commit/a2e7714