Skip to content

Conversation

@claytondaley
Copy link
Contributor

ZF2 password elements are built with extra layers of intelligence. For example, an edit form will not (by default) send the password from a database object back to the browser.

ZF2 issue #2602 notes that a Password element is not automatically created when the password attribute is sent. Rather the type => password needs to be included in the parent array. This causes ZfcUser forms (and inheritors) to miss out on these features.

This patch fixes this issue for the 1.x branch. I have no idea what side-effects this may have as some users may depend on the Element's incorrect behaviors, but it strikes me as an appropriate BC risk since it should enhance intrinsic security of anything that uses ZfcUser.

@claytondaley claytondaley changed the title Fix password Element type Fix password Element type (1.x) Jan 28, 2015
@Martin-P
Copy link

See also zendframework/zendframework#7166

@Danielss89 Danielss89 added this to the 1.2.3 milestone Feb 1, 2015
Danielss89 added a commit that referenced this pull request Feb 1, 2015
@Danielss89 Danielss89 merged commit 2d9ba98 into ZF-Commons:1.x Feb 1, 2015
@claytondaley claytondaley deleted the password-entities-1.x branch February 1, 2015 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants