Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Displaying customer passwords to admin
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 12-09-2004, 12:26 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Man
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 2,879
 

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

The following user thanks BCSE for this useful post:
am2003 (07-11-2010)
  #2  
Old 01-05-2005, 09:42 PM
  eaglemobiles's Avatar 
eaglemobiles eaglemobiles is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 167
 

Default Re: Displaying customer passwords to admin

Thanks, for this great code helped allot dealing with customer
__________________
X-Cart Gold 4.3.2
X-Cart Gold 4.4.1
Unix

High Quality CCTV DVRs & Cameras
http://www.eaglemobiles.co.uk/CCTV
Reply With Quote
  #3  
Old 03-24-2005, 10:18 PM
 
jignacio jignacio is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: URUGUAY
Posts: 79
 

Default

Didn't work on 4.0.12
Regards
__________________
Josц╘ Ignacio
X-Cart Gold 4.0.13 (UNIX)
cc: 2checkout.com

www.uruexpress.com
Reply With Quote
  #4  
Old 03-27-2005, 06:34 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Man
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 2,879
 

Default

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

Thanks,

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
  #5  
Old 03-28-2005, 07:46 AM
 
sstillwell@aerostich.com sstillwell@aerostich.com is offline
 

eXpert
  
Join Date: Jun 2004
Location: Duluth, MN
Posts: 242
 

Default

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.
__________________
No longer using Xcart, was good while it lasted.
Reply With Quote
  #6  
Old 03-28-2005, 09:24 PM
 
jignacio jignacio is offline
 

Advanced Member
  
Join Date: Aug 2003
Location: URUGUAY
Posts: 79
 

Default

Thanks sstillwell@aerostich.com,

works perfect in 4.0.12


Thanks BCSE, a great code.
All the best
__________________
Josц╘ Ignacio
X-Cart Gold 4.0.13 (UNIX)
cc: 2checkout.com

www.uruexpress.com
Reply With Quote
  #7  
Old 03-29-2005, 06:12 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Man
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 2,879
 

Default

Great! Glad you got it figured out.

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
  #8  
Old 04-06-2005, 09:12 PM
 
kevin02 kevin02 is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 60
 

Default

Works great in 4.13 Thanks!!!!
__________________
Apache Linux 2.2.24
MySQL version: 5.5.30-cll
X-cart V 4.5.5
PHP 5.2.0
Reply With Quote
  #9  
Old 04-07-2005, 09:40 PM
 
stmart stmart is offline
 

Member
  
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 23
 

Default

Where is it in 3.5.9? Can't seem to find it!
__________________
.:::ST MART GROUP:::.
X-Cart 3.5.9 & 4.0.14
Reply With Quote
  #10  
Old 04-11-2005, 05:47 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Man
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 2,879
 

Default

Try
skin1/admin/register.tpl

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
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:21 AM.

   

 
X-Cart forums © 2001-2018