Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Remove password from order form

Gabriel Boutin shared this idea 1 year ago
Already Possible

Hello,

as our proxmox module already generates random and secure passwords, we would like to remove the password field from the order form.

Why?

Client sometimes put bad passwords and get bruteforced, or sometimes the passwords are too short and their VPS doest get automatically created

How?

We already tried to remove the password field, but as it is required, the client gets an error for an unvisible field.

Same goes for NS servers

thanks!

Comments (1)

photo
1

Hi there,

Thanks for your suggestion. Fields can be hidden from the order form by way of a template customisation to /templates/orderforms/*your child template*/configureproduct.tpl. The key part is to pass a default value.

So this line:

  1. <input type="password" name="rootpw" class="form-control" id="inputRootpw" value="{$server.rootpw}">

Becomes:

  1. <input type="hidden" name="rootpw" class="form-control" id="inputRootpw" value="NA">

-

For nameservers:

  1. <input type="text" name="ns1prefix" class="form-control" id="inputNs1prefix" value="{$server.ns1prefix}" placeholder="ns1">

Becomes:

  1. <input type="hidden" name="ns1prefix" class="form-control" id="inputNs1prefix" value="ns1" placeholder="ns1">