Jump to content

Password Change Failed!


Snowman

Recommended Posts

Ahh I see this now. Never looked to see what the clients sees.

 

Some of these server modules don't have a remote API to change the password. You have to do it manually. For instance the Virtualmin server module, you can only change the webhosting password not the server root user password.

Link to comment
Share on other sites

the code that does this is

 

{if $username}

{if $modulechangepassword}
<form method="post" action="{$smarty.server.PHP_SELF}?action=productdetails">
 <input type="hidden" name="id" value="{$id}" />
 <input type="hidden" name="modulechangepassword" value="true" />
 {/if}
 <h3>{$LANG.serverlogindetails}</h3>
 {if $modulechangepasswordmessage}
 <div class="errorbox">{$modulechangepasswordmessage}</div>
 <br />
 {/if}
 <table width="100%" cellspacing="0" cellpadding="0" class="frame">
   <tr>
     <td><table width="100%" border="0" cellpadding="10" cellspacing="0">
         <tr>
           <td width="150" class="fieldarea">{$LANG.serverusername}/{$LANG.serverpassword}:</td>
           <td colspan="2">{$username}{if $password} / {$password}{/if}</td>
         </tr>
         {if $modulechangepassword}
         <tr>
           <td width="150" class="fieldarea">{$LANG.serverchangepasswordenter}:</td>
           <td width="175"><input type="password" name="newpassword1" id="newpw" size="25" /></td>
           <td><script language="javascript">showStrengthBar();</script></td>
         </tr>
         <tr>
           <td class="fieldarea">{$LANG.serverchangepasswordconfirm}:</td>
           <td colspan="2"><input type="password" name="newpassword2" size="25" /></td>
         </tr>
         {/if}
     </table></td>
   </tr>
 </table>
 {if $modulechangepassword}
 <p align="center">
   <input type="submit" value="{$LANG.serverchangepasswordupdate}" class="button" />
 </p>
</form>
{/if}

{/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