![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
IP: 112.87.93.182
|
|||
|
|||
|
his code change for X-Cart 4.4.x+ will allow your customers to recover their lost account information by Email or Username instead of one or the other.
Open /skin/common_files/help/Password_Recovery.tpl Find: Code:
{$login_field_name}
Replace with: Code:
Email or Username Find: Code:
$account = func_query_first("SELECT id, login, password, email, usertype FROM $sql_tbl[customers] WHERE login='$username' AND usertype='$utype' AND status='Y'");
Code:
// WCM - Search by email if username doesn't match
if (empty($account))
$account = func_query_first("SELECT id, login, password, email, usertype FROM $sql_tbl[customers] WHERE email='" . mysql_real_escape_string(trim($username)) . "' AND usertype='$utype' AND status='Y'");
// / WCM - Search by email if username doesn't match
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| webwiz.co.uk Admin Account Login / Password Reset | topvip | 网络资源 | 0 | 2010-12-10 03:31 PM |
| Web Wiz Forums admin password | topvip | 闲话灌水 | 0 | 2010-09-26 09:29 AM |
| Change user root & password of Xampp MySql | topvip | 服务器环境搭建 | 0 | 2010-07-24 12:31 PM |
| HostGator » Terms of Service | topvip | 虚拟主机 | 0 | 2008-03-06 10:35 AM |
| 使用XAMPP轻松建站(Linux版) | smiling | 服务器环境搭建 | 0 | 2006-05-13 04:01 AM |