Jump to content

SolusVM Random Password


vb543

Recommended Posts

I'd like to randomly generate a password for new SolusVM VPS orders. From what I've researched, the best way to accomplish this would be by editing the order forms template. However, this is where I get stuck.

 

I reached out to SolusVM and they indicated that I could simply remove the password field altogether and the module would automatically generate the random password and email it to the client. This would be my preferred method.

 

 

 

Could anyone point me in the right direction? Thanks!

Link to comment
Share on other sites

It did not work when I tried that suggestion as I had an error about password being required.

 

But you can try the following in your order form configureproduct.tpl:

 

 

{if $productinfo.type eq "server"}
<h3>{$LANG.cartconfigserver}</h3>
<div class="serverconfig">
<table width="100%" cellspacing="0" cellpadding="0" class="configtable">
<input type="hidden" name="hostname" size="1" value="whatever.com" />
<input type="hidden" name="ns1prefix" size="1" value="NA" />
<input type="hidden" name="ns2prefix" size="1" value="NA" />
<input type="hidden" name="rootpw" size="20" value="" />
</table>
</div>
{/if}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated