X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Displaying customer passwords to admin (https://forum.x-cart.com/showthread.php?t=10846)

BCSE 12-09-2004 12:26 PM

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

eaglemobiles 01-05-2005 09:42 PM

Re: Displaying customer passwords to admin
 
Thanks, for this great code helped allot dealing with customer

jignacio 03-24-2005 10:18 PM

Didn't work on 4.0.12
Regards

BCSE 03-27-2005 06:34 PM

Can you give more info? Post your changed code, etc? Hard to help with just that information.

Thanks,

Carrie

sstillwell@aerostich.com 03-28-2005 07:46 AM

In register_account.tpl there are two different lines.

Code:

<INPUT type="password" id="passwd1" name="passwd1" size="32" maxlength="32" value="{$userinfo.passwd1}">

You want the second one I believe.

jignacio 03-28-2005 09:24 PM

Thanks sstillwell@aerostich.com,

works perfect in 4.0.12


Thanks BCSE, a great code.
All the best

BCSE 03-29-2005 06:12 AM

Great! Glad you got it figured out. :)

Carrie

kevin02 04-06-2005 09:12 PM

Works great in 4.13 Thanks!!!!

stmart 04-07-2005 09:40 PM

Where is it in 3.5.9? Can't seem to find it!

BCSE 04-11-2005 05:47 AM

Try
skin1/admin/register.tpl

Carrie


All times are GMT -8. The time now is 03:23 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.