>
> I have a password field in one of my forms. How can I pre-populate that
> field with a value? I have tried setting the value with
> $form->password->setValue() but when the form is rendered the password
> field
> shows up blank. I know this is the intended behavior for login forms, but
> the form I am working with now is not a login form. Thanks for the help!
>
It doesn't matter if it's a login form. You should never pre-populate a
password field.
You shouldn't even store a password in plaintext; instead you should store a
one-way hash of the salted password. So therefore you should never be able
to retrieve the value with which you would pre-populate the password field.
Regards,
Bill Karwin
--
View this message in context: http://www.nabble.com/Prepopulating-a-password-field-with-Zend_Form-tp18816687p18819475.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论