Commit fcf77b61cf98be2ea2ba947a0efc87486294dab9
1 parent
49c3ffb9
add local config
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
src/app/frontend/controllers/CustomerController.php
@@ -30,10 +30,8 @@ class CustomerController extends \controllers\ControllerBase | @@ -30,10 +30,8 @@ class CustomerController extends \controllers\ControllerBase | ||
30 | // OK | 30 | // OK |
31 | // redirect | 31 | // redirect |
32 | if($this->session->get('special_users_id') != null) { | 32 | if($this->session->get('special_users_id') != null) { |
33 | - die('here1'); | ||
34 | return $this->response->redirect(['for' => 'personal_data', 'language' => $this->lang_name]); | 33 | return $this->response->redirect(['for' => 'personal_data', 'language' => $this->lang_name]); |
35 | } | 34 | } |
36 | - die('here2'); | ||
37 | return $this->response->redirect(['for' => 'cabinet', 'language' => $this->lang_name]); | 35 | return $this->response->redirect(['for' => 'cabinet', 'language' => $this->lang_name]); |
38 | 36 | ||
39 | break; | 37 | break; |
@@ -409,7 +407,7 @@ class CustomerController extends \controllers\ControllerBase | @@ -409,7 +407,7 @@ class CustomerController extends \controllers\ControllerBase | ||
409 | $registration['passwd'] = $this->common->hashPasswd( $passwd ); | 407 | $registration['passwd'] = $this->common->hashPasswd( $passwd ); |
410 | $registration['user_pass'] = $passwd; | 408 | $registration['user_pass'] = $passwd; |
411 | $registration['confirm_key'] = $confirm_key; | 409 | $registration['confirm_key'] = $confirm_key; |
412 | - | 410 | + die('here'); |
413 | switch( $this->models->getCustomers()->resetPasswd( $registration ) ) | 411 | switch( $this->models->getCustomers()->resetPasswd( $registration ) ) |
414 | { | 412 | { |
415 | case 1: | 413 | case 1: |