Commit b79811e68736ab04f630e315b3d703fa4e3d6708
1 parent
94ca4153
add local config
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
src/app/frontend/controllers/CustomerController.php
| @@ -405,6 +405,7 @@ class CustomerController extends \controllers\ControllerBase | @@ -405,6 +405,7 @@ class CustomerController extends \controllers\ControllerBase | ||
| 405 | if( $passwd === $confirm_passwd ) | 405 | if( $passwd === $confirm_passwd ) |
| 406 | { | 406 | { |
| 407 | $registration['passwd'] = $this->common->hashPasswd( $passwd ); | 407 | $registration['passwd'] = $this->common->hashPasswd( $passwd ); |
| 408 | + $registration['user_pass'] = $passwd; | ||
| 408 | $registration['confirm_key'] = $confirm_key; | 409 | $registration['confirm_key'] = $confirm_key; |
| 409 | 410 | ||
| 410 | switch( $this->models->getCustomers()->resetPasswd( $registration ) ) | 411 | switch( $this->models->getCustomers()->resetPasswd( $registration ) ) |
src/lib/models/customers.php
| @@ -467,7 +467,7 @@ class customers extends \db | @@ -467,7 +467,7 @@ class customers extends \db | ||
| 467 | [ | 467 | [ |
| 468 | 'status' => 1, | 468 | 'status' => 1, |
| 469 | 'passwd' => $registration['passwd'], | 469 | 'passwd' => $registration['passwd'], |
| 470 | -// 'user_pass' => $registration['user_pass'], | 470 | + 'user_pass' => $registration['user_pass'], |
| 471 | 'id' => $data_customer_id['0']['customer_id'], | 471 | 'id' => $data_customer_id['0']['customer_id'], |
| 472 | 'lastlogin_date' => date( 'Y-m-d H:i' ) | 472 | 'lastlogin_date' => date( 'Y-m-d H:i' ) |
| 473 | ] | 473 | ] |