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

Allowing admin to see customers password

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 06-19-2003, 12:41 PM
 
jaymon jaymon is offline
 

Member
  
Join Date: Sep 2002
Location: St. Louis
Posts: 16
 

Default Allowing admin to see customers password

Thought I'd post this in case anyone else wanted something similar. Not sure if this is the best way to achieve it, but it definitely works.

Edit your main/register.tpl and look for the parts where the user enters and confirms their password. Below is the change I made.

Quote:
<tr valign=middle>
<td align=right>Password</td>
<td><font class=Star>*</font></td>
<td nowrap>
{if $smarty.get.mode eq "update" and $smarty.get.usertype eq "C"}
<input name=passwd1 size=32 maxlength=32 value="{$userinfo.passwd1}">
{else}
<input type=password name=passwd1 size=32 maxlength=32 value="{$userinfo.passwd1}">
{/if}
{if $reg_error ne "" and $userinfo.passwd1 eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

<tr valign=middle>
<td align=right>Confirm Password</td>
<td><font class=Star>*</font></td>
<td nowrap>
{if $smarty.get.mode eq "update" and $smarty.get.usertype eq "C"}
<input name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}">
{else}
<input type=password name=passwd2 size=32 maxlength=32 value="{$userinfo.passwd2}">
{/if}
{if $reg_error ne "" and $userinfo.passwd2 eq ""}<font class=Star>&lt;&lt;</font>{/if}
</td>
</tr>

Now when the admin looks at a user's detail in the admin screen the passwords are shown in the password fields instead of the usual bullets. When users sign up, they'll see the obfuscated password fields.

If someone's got a cleaner way to do this, I'm all ears. If not, then this works well enough for me.

HTH
__________________
--
Austin
Reply With Quote
  #2  
Old 06-19-2003, 01:43 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

moved to custom templates
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-09-2003, 08:38 PM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default Thank you

nice
thank you
Reply With Quote
  #4  
Old 09-24-2003, 08:17 PM
 
wild boar wild boar is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 88
 

Default

thanks! it worked..

Is there a website that has all of the hacks, fixes and mods for x-cart?

If not someone should start up a website called x-cart hacks..

I'd help out on a site like this if several people helped out.. I don't have time to do another website..

something like phpbbhacks.com (which I use when in need of mods)

If anyone wants to go in like a site like this, pm me or something.. It would most likely be non-profit.. Just a site to help out all of the webmasters that use x-cart

If there's already a site like this, what's the url.. I'd be interested in going there
__________________
hi
Reply With Quote
  #5  
Old 09-25-2003, 01:40 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Thats pretty much what the custom templates forum here is for
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #6  
Old 09-25-2003, 01:43 AM
 
wild boar wild boar is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 88
 

Default

I understand that.. but something more organized..

It would be nice to go to a site and see all the mods listed and such and just go to it

In the forums you don't know what mods there are without looking at each post

it was just an idea
__________________
hi
Reply With Quote
  #7  
Old 09-25-2003, 02:03 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

yeh, its just that there are so many versions / mods etc it gets hard.

We tried to only allow cutom mods to go in the custom templates folder and ask for people to always add the version numbers it will work for and write a useful, descriptive title.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #8  
Old 09-26-2003, 01:39 AM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default

Quote:
Originally Posted by wild boar
thanks! it worked..

Is there a website that has all of the hacks, fixes and mods for x-cart?

If not someone should start up a website called x-cart hacks..

I'd help out on a site like this if several people helped out.. I don't have time to do another website..

something like phpbbhacks.com (which I use when in need of mods)

If anyone wants to go in like a site like this, pm me or something.. It would most likely be non-profit.. Just a site to help out all of the webmasters that use x-cart

If there's already a site like this, what's the url.. I'd be interested in going there

I think is a good idea, I got the name.
But I need your opinion.
WHat would be the best type of site for this;
a portal like nuke, xoops, etc...
or like a forum

V/R
bmaworld
Reply With Quote
  #9  
Old 09-26-2003, 02:06 AM
 
wild boar wild boar is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 88
 

Default

php nuke sucks.. every site looks the same that uses it.. the 3 colum stage..

I think you should go with a file download database with sql

and sort by author / date / version and categorize it by mod.

I saw you bought the name! Awsome! If you need my help with anything (design related, and ideas) I will help a little bit on my free time.. but only if it's non-profit.. I dont' believe it profiting from other people's mod's..

Also your going to have to get permission to put other people's mods on the site, and probably have a file upload on the page where other's can upload..

ask me if you need anything..
__________________
hi
Reply With Quote
  #10  
Old 09-26-2003, 02:52 PM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

Quote:
Originally Posted by wild boar
php nuke sucks.. every site looks the same that uses it.. the 3 colum stage..

X cart is the exact same layout. Header, column on left, mid space, column on right, footer.
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 12:18 AM.

   

 
X-Cart forums © 2001-2020