View Single Post
  #1  
Old 12-09-2004, 12:26 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,063
 

Default Displaying customer passwords to admin

This mod was created back in 2004 and may violate current PCI compliance rules. Use at your own risk!


Here's another quick mod I find useful. Good for sites that the admin frequently need customer's passwords.

For 4.0.8, find main/register_account.tpl (other versions I think it's just in main/register.tpl)
and look for this code:
Code:
<TR> <TD align="right">{$lng.lbl_password}</TD> <TD><FONT class="Star">*</FONT></TD> <TD nowrap><INPUT type="password" id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}"> {if $reg_error ne "" and $userinfo.passwd1 eq ""}<FONT class="Star">&lt;&lt;</FONT>{/if} </TD> </TR>

And make the <input> tag look like this:
Code:
<INPUT {if $usertype eq "A" or $usertype eq "P"} type=text {else} type="password" {/if} id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}">

This should work in all 3.x and 4.x versions of X-cart. All you have to do is find similar code and add the {if}{else}{/if} statement in the <input> tag.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote