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 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 04-11-2005, 08:54 PM
 
stmart stmart is offline
 

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

Default

Thanks for that... its in skin1/admin/main/register.tpl
__________________
.:::ST MART GROUP:::.
X-Cart 3.5.9 & 4.0.14
Reply With Quote
  #12  
Old 04-11-2005, 09:06 PM
 
stmart stmart is offline
 

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

Default

I dont want to sound like an idiot, but what does this mod actually do? Because I assumed it would allow admin to see the customers password. Is this correct? If it is, I must have done something wrong.
__________________
.:::ST MART GROUP:::.
X-Cart 3.5.9 & 4.0.14
Reply With Quote
  #13  
Old 04-12-2005, 05:21 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

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

Default

Yes it does allow the admin to see the customer's passwords like the original subject states. When you view a customer's profile in the admin, this mod will allow you to see the passwords in plain text down at the bottom of the screen in the password box section.

If you post the code you changed, I may be able to help you get it working.

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
  #14  
Old 04-12-2005, 04:26 PM
  leed's Avatar 
leed leed is offline
 

Senior Member
  
Join Date: Nov 2002
Location: England (UK)
Posts: 128
 

Default also need for confirm password field

This is for a 3.4.7 modified, but you should get the general idea , other 3.4.x should be similar.

Code:
<TD vAlign=top align=left> {* <input type=password name="passwd1" id="passwrd1" maxlength="32" style="WIDTH: 200px" value="{$userinfo.passwd1}"> *} <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}"> </TD> </TR> <TR> <TD vAlign=top align=left>[img]{$http_location}/{$ImagesDir|replace:[/img]</TD> </TR> <TR> <TD vAlign=top align=left> {* <input type=password name="passwd2" id="passwrd2" maxlength="32" style="WIDTH: 200px" value="{$userinfo.passwd2}"> *} <INPUT {if $usertype eq "A" or $usertype eq "P"} type=text {else} type="password" {/if} id="passwd2" name="passwrd2" size="32" maxlength="32" value="{$userinfo.passwd2}">

Nice mod Carrie - kudos

LeeD
__________________
Why a mouse when it spins ......
X-Cart Gunslingers - For Hire!!
http://forum.x-cart.com/viewtopic.php?t=8615
Reply With Quote
  #15  
Old 04-12-2005, 09:04 PM
 
stmart stmart is offline
 

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

Default

Thanks for helping me out guys...appreciate it. I posted the whole file admin/main/register.tpl

Code:
{* $Id: register.tpl,v 1.4.2.5 2004/04/09 07:07:27 svowl Exp $ *} {include file="check_email_script.tpl"} {include file="check_zipcode_js.tpl"} {if $smarty.get.mode eq "update" or $smarty.post.mode eq "update"} {assign var="last_location" value=$lng.lbl_modify_profile} {elseif $smarty.get.mode eq "delete" or $smarty.post.mode eq "delete"} {assign var="last_location" value=$lng.lbl_delete_profile} {elseif $last_location eq ""} {assign var="last_location" value=$lng.lbl_new_member} {/if} {include file="location.tpl" last_location=$last_location} This section allows you to {if $smarty.get.mode eq "add"}create{else}modify{/if} administrator's profile. Please remember that the fields marked with '<font class=Star>*</font>' are mandatory and must be filled. {if $newbie eq "Y"} {if $registered eq ""} {if $smarty.get.mode eq "update"} {$lng.txt_modify_profile_msg} {else} <font class=Text> {if $usertype eq "B"} {$lng.txt_create_profile_msg_partner} {else} {$lng.txt_create_profile_msg} {/if} </font> {/if} {/if} {/if} {capture name=dialog} {if $registered eq ""} {if $reg_error eq "F" } <font class=Star> {$lng.txt_registration_error} </font> {elseif $reg_error eq "E" } <font class=Star>{$lng.txt_email_already_exists} </font> {elseif $reg_error eq "U" } <font class=Star>{$lng.txt_user_already_exists}</font> {/if} {if $error ne ""} <font class=Star>{$error}</font> {/if} <table width=100% border=0 cellspacing=0 cellpadding=2> <form action="{ $register_script_name }?{ $smarty.server.QUERY_STRING }" method=post name=registerform> {if $config.General.use_https_login eq "Y"} <input type=hidden name="{$XCARTSESSNAME}" value="{$XCARTSESSID}"> {/if} <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_personal_information}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_title}</td> <td><font class=Star>*</font></td> <td nowrap> <select name=title> {section name=title loop=$name_titles} <option {if $userinfo.title eq $name_titles[title]}selected{/if}>{$name_titles[title]}</option> {/section} </select> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_first_name}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=firstname size=32 maxlength=32 value="{$userinfo.firstname}"> {if $reg_error ne "" and $userinfo.firstname eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_last_name}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=lastname size=32 maxlength=32 value="{$userinfo.lastname}"> {if $reg_error ne "" and $userinfo.lastname eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_company}</td> <td></td> <td nowrap> <input type=text name=company size=32 maxlength=32 value="{$userinfo.company}"> </td> </tr> {* <TR valign=middle> *} {* <TD align=right>{$lng.lbl_ssn}</TD> *} {* <TD></TD> *} {* <TD nowrap> *} {* <INPUT type=text name=ssn size=32 maxlength=32 value="{$userinfo.ssn}"> *} {* </TD> *} {* </TR> *} {if $usertype eq "A" or $usertype eq "P"} <tr valign=middle> <td align=right>Refered by:</td> <td></td> <td nowrap> {$userinfo.referer} </td> </tr> {/if} <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_billing_address}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_address}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_address size=32 maxlength=64 value="{$userinfo.b_address}"> {if $reg_error ne "" and $userinfo.b_address eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_city}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_city size=32 maxlength=64 value="{$userinfo.b_city}"> {if $reg_error ne "" and $userinfo.b_city eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_state}</td> <td>{if $states ne ""}<font class=Star>*</font>{/if}</td> <td nowrap> {include file="main/states.tpl" states=$states name="b_state" default=$userinfo.b_state default_country=$userinfo.b_country} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_country}</td> <td><font class=Star>*</font></td> <td nowrap> <select name=b_country onChange="check_zip_code()"> {section name=country_idx loop=$countries} <option value={$countries[country_idx].country_code} {if $userinfo.b_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code eq $config.General.default_country and $userinfo.b_country eq ""}selected{/if}>{$countries[country_idx].country}</option> {/section} </select> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_zip_code}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=b_zipcode size=32 maxlength=32 value="{$userinfo.b_zipcode}" onChange="check_zip_code()" > {if $reg_error ne "" and $userinfo.b_zipcode eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_shipping_address_registration}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_address}</td> <td></td> <td nowrap> <input type=text name=s_address size=32 maxlength=64 value="{$userinfo.s_address}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_city}</td> <td></td> <td nowrap> <input type=text name=s_city size=32 maxlength=64 value="{$userinfo.s_city}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_state}</td> <td></td> <td nowrap> {include file="main/states.tpl" states=$states name="s_state" default=$userinfo.s_state default_country=$userinfo.s_country} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_country}</td> <td></td> <td nowrap> <select name=s_country size=1 onChange="check_zip_code()"> {section name=country_idx loop=$countries} <option value={$countries[country_idx].country_code} {if $userinfo.s_country eq $countries[country_idx].country_code}selected{elseif $countries[country_idx].country_code eq $config.General.default_country and $userinfo.b_country eq ""}selected{/if}>{$countries[country_idx].country}</option> {/section} </select> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_zip_code}</td> <td></td> <td nowrap> <input type=text name=s_zipcode size=32 maxlength=32 value="{$userinfo.s_zipcode}" onChange="check_zip_code()" > </td> </tr> <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_contact_information}<hr size=1 noshade></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_phone}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=phone size=32 maxlength=32 value="{$userinfo.phone}"> {if $reg_error ne "" and $userinfo.phone eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_email}</td> <td><font class=Star>*</font></td> <td nowrap> <input type=text name=email size=32 maxlength=128 value="{$userinfo.email}"> {if $emailerror ne "" or ($reg_error ne "" and $userinfo.email eq "")}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_fax}</td> <td></td> <td nowrap> <input type=text name=fax size=32 maxlength=128 value="{$userinfo.fax}"></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_web_site}</td> <td></td> <td nowrap> <input type=text name=url size=32 maxlength=128 value="{$userinfo.url}"></td> </tr> {if $usertype eq "C" or $smarty.get.usertype eq "C"} {if $config.General.disable_cc ne "Y"} {include file="main/register_ccinfo.tpl"} {/if} {/if} <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_username_n_password}<hr size=1 noshade></td> </tr> {if $userinfo.login eq $login and $login and $userinfo.usertype ne "C"} <input type=hidden name=membership value="{$userinfo.membership}"></d> <input type=hidden name=pending_membership value="{$userinfo.pending_membership}"></d> {else} {if $config.General.membership_signup eq "Y" and ($usertype eq "C" or ($active_modules.Simple_Mode ne "" and $usertype eq "P") or $usertype eq "A")} {include file="admin/main/membership_signup.tpl"} {/if} {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode ne "")} {include file="admin/main/membership.tpl"} {/if} {/if} {if $anonymous ne "" and $config.General.disable_anonymous_checkout ne "Y"} {* Anonymous account *} <tr> <td colspan=3>{$lng.txt_anonymous_account_msg}</TD> </tr> <tr valign=middle> <td align=right>{$lng.lbl_username}</td> <td></td> <td nowrap> <input type=text name=uname size=32 maxlength=32 value="{$userinfo.login}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_password}</td> <td></td> <td nowrap><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}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_confirm_password}</td> <td></td> <td nowrap><input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}"> </td> </tr> {else} {* NOT anonymous account *} <tr valign=middle> <td align=right>{$lng.lbl_username}</td> <td><font class=Star>*</font></td> <td nowrap> {if $smarty.get.mode eq "update" or $smarty.post.mode eq "update"} {$userinfo.login} <input type=hidden name=uname value="{$userinfo.login}"> {else} <input type=text name=uname size=32 maxlength=32 value="{$userinfo.login}"> {if $reg_error ne "" and $userinfo.login eq ""}<font class=Star>&lt;&lt;</font>{/if} {/if} </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_password}</td> <td><font class=Star>*</font></td> <td nowrap><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}"> </td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_confirm_password}</td> <td><font class=Star>*</font></td> <td nowrap><input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}"> {if $reg_error ne "" and $userinfo.passwd2 eq ""}<font class=Star>&lt;&lt;</font>{/if} </td> </tr> {/if} {* <tr valign=middle> <td align=right>{$lng.lbl_password_hint}</td> <td></td> <td nowrap><input type=text name=password_hint size=32 maxlength=32 value="{$userinfo.password_hint}"></td> </tr> <tr valign=middle> <td align=right>{$lng.lbl_password_hint_answer}</td> <td></td> <td nowrap><input type=text name=password_hint_answer size=32 maxlength=32 value="{$userinfo.password_hint_answer}"></td> </tr> *} {if ($active_modules.Simple_Mode ne "" and $usertype eq "P") or $usertype eq "A"} <tr valign=middle> <td colspan="2"></td> <td nowrap> <INPUT type="checkbox" name="change_password" value="Y"{if $userinfo.change_password eq "Y"} checked{/if}> {$lng.lbl_reg_chpass} </td> </tr> {/if} <tr valign=middle> <td height=20 colspan=3>{$lng.lbl_newsletter}<hr size=1 noshade></td> </tr> <tr valign=middle> <td></td> <td></td> <td> <input type=checkbox name=newsletter {if $userinfo.newsletter eq "Y"}checked{/if}> {$lng.txt_newsletter_msg} </td> </tr> <tr valign=middle> <td></td> <td></td> <td> {if $newbie eq "Y"} {$lng.txt_you_are_agree} <font class=Text>{$lng.lbl_terms_n_conditions}</font>. {/if} <font class=FormButton> {if $smarty.get.mode eq "update"} <input type=hidden name=mode value=update> {/if} <input type=hidden name=anonymous value={$anonymous}> {if $js_enabled} {include file="buttons/submit.tpl"} {else} {include file="submit_wo_js.tpl" value=$lng.lbl_submit} {/if} </td> </tr> <input type=hidden name=usertype value="{if $smarty.get.usertype ne ""}{$smarty.get.usertype|escape:"html"}{else}{$usertype}{/if}"> </form> </table> {if $newbie eq "Y"} {$lng.txt_newbie_registration_bottom} <font class=Text>{$lng.lbl_terms_n_conditions}</font>{include file="buttons/go.tpl"} {/if} {else} {if $smarty.post.mode eq "update" or $smarty.get.mode eq "update"} {$lng.txt_profile_modified} {elseif $smarty.get.usertype eq "B" or $usertype eq "B"} {$lng.txt_partner_created} {else} {$lng.txt_profile_created} {/if} {/if} {/capture} {if $smarty.post.mode eq "update" or $smarty.get.mode eq "update"} {include file="dialog.tpl" title=$lng.lbl_modify_profile content=$smarty.capture.dialog extra="width=100%"} {else} {include file="dialog.tpl" title=$lng.lbl_new_member content=$smarty.capture.dialog extra="width=100%"} {/if}
__________________
.:::ST MART GROUP:::.
X-Cart 3.5.9 & 4.0.14
Reply With Quote
  #16  
Old 06-01-2005, 09:51 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Can someone please tell me where this is in 4.0.13. I found register.tpl in skin1/admin/main but could not find this coding? Did it change?

Thanks a lot
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #17  
Old 06-01-2005, 12:48 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

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

Default Re: Displaying customer passwords to admin

Try main/register_account.tpl for versions 4.0.x

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
  #18  
Old 06-01-2005, 06:38 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Thanks
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #19  
Old 06-17-2005, 06:37 AM
 
Maree Maree is offline
 

Advanced Member
  
Join Date: May 2005
Posts: 85
 

Default

Thanks again Carrie


Works Perfectly in 4.0.13
__________________
Maree
4.0.13
Reply With Quote
  #20  
Old 07-20-2006, 11:46 AM
 
equinetackstore equinetackstore is offline
 

Advanced Member
  
Join Date: May 2006
Posts: 47
 

Default

Great Mod Carrie:

Worked well in 4.018. Will be a great asset when we open live.
__________________
Nanci
Version 4.018 (stable)
Template by Dana7
Grouped Categories
X-RMA
X-Magnifier
Remember Me
Buyers also Bought
X-AOM
Pleasant Payment Details
Printable Catalog
X-SpecialOffers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 01:08 AM.

   

 
X-Cart forums © 2001-2020