Hi,
I hide the password field fron non-admins. In D7 I still get a field "Current Password" visible.
I get Password and Confirm password for admin.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | user_readonly-1356844-3.patch | 833 bytes | filsterjisah |
| #4 | user_readonly-1356844-2.patch | 854 bytes | filsterjisah |
| #3 | user_readonly-1356844.patch | 854 bytes | filsterjisah |
Comments
Comment #1
sw3b commentedsame for me !
Comment #2
FNGR commentedsame here!
Comment #3
filsterjisah commentedThis current password field is used for when a user changes some fields in his own account: I think e-mail and password. Because the form is loading as anonymous user, this field is never included in the admin settings.
Please try attached patch.
Comment #4
filsterjisah commentedFixed typo user_Load()
Comment #5
filsterjisah commentedand removed dpm() .... third time ftw
Comment #6
deekayen commentedThis wasn't marked to need review, so it got missed.
Comment #7
rdrh555 commentedConfirmed "Current Password" field still visible/enabled when configured to be hidden (using "pass" in admin settings). Only the "pass" field is available in admin settings prior to patch. After applying patch #5 current_pass_required_values & current_pass available in admin settings. Configuring current_pass allows disabling/hiding of "Current Password" field for non-admin users.
Comment #9
deekayen commented