src/Eccube/Controller/Admin/Customer/CustomerEditController.php 1 location
|
@@ 95-101 (lines=7) @@
|
| 92 |
|
$app['orm.em']->persist($CustomerAddress); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
if ($Customer->getPassword() === $app['config']['default_password']) { |
| 96 |
|
$Customer->setPassword($previous_password); |
| 97 |
|
} else { |
| 98 |
|
$Customer->setPassword( |
| 99 |
|
$app['eccube.repository.customer']->encryptPassword($app, $Customer) |
| 100 |
|
); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
$app['orm.em']->persist($Customer); |
| 104 |
|
$app['orm.em']->flush(); |
src/Eccube/Controller/Mypage/ChangeController.php 1 location
|
@@ 57-63 (lines=7) @@
|
| 54 |
|
$form->handleRequest($request); |
| 55 |
|
|
| 56 |
|
if ($form->isSubmitted() && $form->isValid()) { |
| 57 |
|
if ($Customer->getPassword() === $app['config']['default_password']) { |
| 58 |
|
$Customer->setPassword($previous_password); |
| 59 |
|
} else { |
| 60 |
|
$Customer->setPassword( |
| 61 |
|
$app['eccube.repository.customer']->encryptPassword($app, $Customer) |
| 62 |
|
); |
| 63 |
|
} |
| 64 |
|
$app['orm.em']->flush(); |
| 65 |
|
|
| 66 |
|
return $app->redirect($app->url('mypage_change_complete')); |