Loading...
X

Use different field type for passwords

0 0

I’m afraid you cannot use another field as the password. It won’t show up in the password drop down in the User Registration feed. You would also be storing their password in plain text, which is a really bad idea. You must use a password field here. Sorry for the inconvenience.

Of course, there is a work around. Have a password field in the form, make it admin only, not required. Then use the gform_pre_submission filter to copy the content of another field in the form over to the password field, and then when the password field is mapped in the user registration feed, the content of that other field will ends up being used as a password.

But the bit about the password being stored in plain text (in the entry) is still valid. Storing passwords in plain text it’s a very bad practice and security risk.

 

Leave Your Observation

Your email address will not be published. Required fields are marked *

Do NOT follow this link or you will be banned from the site!