From b79811e68736ab04f630e315b3d703fa4e3d6708 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 12 Jan 2017 12:01:59 +0200 Subject: [PATCH] add local config --- src/app/frontend/controllers/CustomerController.php | 1 + src/lib/models/customers.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/frontend/controllers/CustomerController.php b/src/app/frontend/controllers/CustomerController.php index 67958bd..b007b66 100644 --- a/src/app/frontend/controllers/CustomerController.php +++ b/src/app/frontend/controllers/CustomerController.php @@ -405,6 +405,7 @@ class CustomerController extends \controllers\ControllerBase if( $passwd === $confirm_passwd ) { $registration['passwd'] = $this->common->hashPasswd( $passwd ); + $registration['user_pass'] = $passwd; $registration['confirm_key'] = $confirm_key; switch( $this->models->getCustomers()->resetPasswd( $registration ) ) diff --git a/src/lib/models/customers.php b/src/lib/models/customers.php index da2c900..6ffc52b 100644 --- a/src/lib/models/customers.php +++ b/src/lib/models/customers.php @@ -467,7 +467,7 @@ class customers extends \db [ 'status' => 1, 'passwd' => $registration['passwd'], -// 'user_pass' => $registration['user_pass'], + 'user_pass' => $registration['user_pass'], 'id' => $data_customer_id['0']['customer_id'], 'lastlogin_date' => date( 'Y-m-d H:i' ) ] -- libgit2 0.21.4