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

Unable to Update Customer Profiles in Admin (password required)

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-19-2016, 09:53 AM
 
dpcompany dpcompany is offline
 

eXpert
  
Join Date: Oct 2008
Posts: 313
 

Default Unable to Update Customer Profiles in Admin (password required)

So, this has been an issue that has long been in my store, and today is the day I have decided to do something about it. Basically, I cannot change anything to do with a customer's profile from the admin side of things. Anytime I try to change something, the dialog informs me that the user's passwords do not match. It is important to mention that this only occurs if I am using IE (Chrome does not have this issue). Can someone please point me in the right direction here? Thanks y'all!
__________________
Michael

Development
X-Cart Gold Plus v4.7.12
- php 7.3
- reBOOT reDUX
- other goodies

X-Cart Gold v4.7.7
- reBOOT Template
- XPayments 3.0.2
- Abandoned Cart Reminder
- BCSE Reward Points
- BCSE Stock Notify
- XPDF Invoices
Reply With Quote
  #2  
Old 04-19-2016, 07:06 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

I have had similar issues using Safari. The problem turned out to be Safari's "AutoFill" feature which will automatically fill in username's and passwords. Check to make sure that any "AutoFill" feature is turned of whenever you use that browser to administer anything in X-Cart.
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote

The following 2 users thank kevinrm for this useful post:
dpcompany (04-20-2016), qualiteam (04-19-2016)
  #3  
Old 04-20-2016, 09:41 AM
 
dpcompany dpcompany is offline
 

eXpert
  
Join Date: Oct 2008
Posts: 313
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

@kevinrm

Disabling autofill definitely works, however, this seems strange to me. I absolutely want (and need) to utilize autofill for many, many things. So, it seems very strange that I need to disable a feature of my internet browser in order to edit customer information on my site. Is there anyway to "exclude" those password fields from whatever is triggering the autofill on the admin section of my site?

Thanks again!
__________________
Michael

Development
X-Cart Gold Plus v4.7.12
- php 7.3
- reBOOT reDUX
- other goodies

X-Cart Gold v4.7.7
- reBOOT Template
- XPayments 3.0.2
- Abandoned Cart Reminder
- BCSE Reward Points
- BCSE Stock Notify
- XPDF Invoices
Reply With Quote
  #4  
Old 04-20-2016, 07:05 PM
 
kevinrm kevinrm is offline
 

X-Wizard
  
Join Date: Aug 2003
Posts: 1,003
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

The problem is not X-Cart, it's the browser. If you visit a certain site, fill in a login and password, then allow the browser to remember that, it will. If you have to use multiple logins and email address such as you do when you administer a customer's account, fill out the PayPal module data, etc, etc, unfortunately the browser will automatically fill that data in and if you are not careful it will cause all kinds of problems.

I have yet been able to figure out how to make the email/ password autofill feature more selective within a site on Safari, it just throws the same thing no matter what page you visit on the site.

I would recommend that you install one browser and use that exclusively for admin of x-cart, and another browser for the rest of the web.
__________________
X-Cart 5.4.1.39 Live
PHP 7.4.33
5.5.5-10.3.38-MariaDB MariaDB
Apache 2.4
CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT
32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1
Reply With Quote
  #5  
Old 04-21-2016, 04:23 AM
 
dpcompany dpcompany is offline
 

eXpert
  
Join Date: Oct 2008
Posts: 313
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

The problem is in X-Cart. Go to the template file located at /common_files/admin/main/register.tpl. Near the top, simply comment out the

{include file="check_password_script.tpl"}

portion of this template. Now, it won't trigger the password not matching error when editing anything in a customer's profile from the admin section.
__________________
Michael

Development
X-Cart Gold Plus v4.7.12
- php 7.3
- reBOOT reDUX
- other goodies

X-Cart Gold v4.7.7
- reBOOT Template
- XPayments 3.0.2
- Abandoned Cart Reminder
- BCSE Reward Points
- BCSE Stock Notify
- XPDF Invoices
Reply With Quote
  #6  
Old 04-21-2016, 08:34 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

You should not do this. The script check not only if the 2 passwords match but also if they comply with the password rules.
Even if you turn it off if password fields are send to the script they are checked on the server side.

What you can do is to set for username/email and password input fields "autocomplete" to off

https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 04-21-2016, 08:43 AM
 
dpcompany dpcompany is offline
 

eXpert
  
Join Date: Oct 2008
Posts: 313
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

@Steve, I actually tried the autocomplete="off" first (a number of different ways), but IE ignores this. Upon commenting out the {include file="check_password_script.tpl"}, ironically the system still does the password check function. So, if I am changing a password, it still has to match and meet the password requirements even with the script commented out.
__________________
Michael

Development
X-Cart Gold Plus v4.7.12
- php 7.3
- reBOOT reDUX
- other goodies

X-Cart Gold v4.7.7
- reBOOT Template
- XPayments 3.0.2
- Abandoned Cart Reminder
- BCSE Reward Points
- BCSE Stock Notify
- XPDF Invoices
Reply With Quote
  #8  
Old 04-21-2016, 12:18 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

The check_password_script.tpl works on browser side immediately while data is being entered in the form. The php script works after form submission and does the same checks.

By the way - https://bt.x-cart.com/view.php?id=45911
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
dpcompany (04-21-2016), qualiteam (04-21-2016)
  #9  
Old 04-21-2016, 12:39 PM
 
dpcompany dpcompany is offline
 

eXpert
  
Join Date: Oct 2008
Posts: 313
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

Thanks for the information Steve. As always, your contributions to this forum are invaluable!
__________________
Michael

Development
X-Cart Gold Plus v4.7.12
- php 7.3
- reBOOT reDUX
- other goodies

X-Cart Gold v4.7.7
- reBOOT Template
- XPayments 3.0.2
- Abandoned Cart Reminder
- BCSE Reward Points
- BCSE Stock Notify
- XPDF Invoices
Reply With Quote

The following user thanks dpcompany for this useful post:
cflsystems (04-21-2016)
  #10  
Old 04-27-2016, 05:41 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Unable to Update Customer Profiles in Admin (password required)

I know this problem existed in older versions of Chrome but has been fixed. I suspect the same for Safari. Would be interesting to know which browser versions triggered this.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


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 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:15 AM.

   

 
X-Cart forums © 2001-2020