Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2006 at 04:53 UTC
Updated:
6 May 2006 at 08:30 UTC
A password_confirm field doesn't display an error when the field is required and the password is not supplied by the user. A patch is supplied to fix this problem.
| Comment | File | Size | Author |
|---|---|---|---|
| form.inc.patch.txt | 626 bytes | sammys |
Comments
Comment #1
chx commentedHave you tried applying this patch , editing a user and not submitting a password? If yes, then it's OK.
Comment #2
sammys commentedYes. Applying this patch doesn't create an error condition when the field is not required and empty string.
Comment #3
dww+1
yup, without this patch, if i artificially make the password field required on the user/X/edit page, then it happily allows me to leave both fields blank and form.inc considers it valid. once i apply the patch, two empty passwords is no longer considered valid if a password field is marked as required.
@chx: no, the password_confirm field on the user page is *NOT* required, so you can edit the profile without changing the password, even once this patch is applied. i just hacked that to be able to see the bug in action. ;)
definitely RTBC.
-derek
Comment #4
killes@www.drop.org commentedapplied
Comment #5
(not verified) commented