Crocoblock / jetformbuilder

78 stars 16 forks source link

Auto generate password if not supplied #277

Open rtpHarry opened 1 year ago

rtpHarry commented 1 year ago

I'm building a user portal which requires approval before the user can access it.

It makes sense to let the user just sign up with their details, and not require a password at this stage:

image

It would make sense to allow this scenario in certain situations, like admin users creating accounts for users, or low friction sign ups.

The reset password link can be used later on to allow the user to take control of the account.

WooCommerce has a similar option, where it auto generates an account for you during the checkout but you have to reset the password to get access to the account.

rtpHarry commented 1 year ago

I thought maybe I could generate a password in a hidden field.

It is possible, but not as clean as I would like.

I've had to set a static password for all users. Unticking the render in html.

The hidden field is pretty limited still at the moment, with no option to "break out" such as calling a hook, or using a dynamic tag. It only has options to use pre-supplied values.