You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
This results in a \Zend\Form\Element instead of a \Zend\Form\Element\Password. To get a password element, the user must explicitly identify the password type in the parent array:
To be fair, the distinction is real and could theoretically be a desired behavior.
At minimum, I would recommend adding a special warning in the documentation, possibly under Factory-Backed Form Extension.
However, I also believe this is an obvious spot to "nudge" users by making the most secure assumption (password attribute intends to create a password element). Obviously, a user could override this setting by explicitly asking for a type => text.
Issue #2602 added desirable security functionality to the Password Element including:
It was later noted that the password attribute (frequently used to identify a password field) is not considered by the Factory:
This results in a
\Zend\Form\Elementinstead of a\Zend\Form\Element\Password. To get a password element, the user must explicitly identify the password type in the parent array:To be fair, the distinction is real and could theoretically be a desired behavior.
type => text.