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 | luksak |
| #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 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 commentedI agree with the proposal.
Comment #3
joelstein commentedThe UI was cleaned up a bit in this ticket #772690: Module revamp and the latest release.
Comment #5
yogesh1110 commentedHere is the patch to display password message based on permission 'administer users'
Comment #6
yogesh1110 commentedHere is the patch to display password message based on permission 'administer users'
Comment #7
luksakI wrote a patch for D7 that adds a option to disable these messages globally.
Comment #8
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