@@ 89-99 (lines=11) @@ | ||
86 | if ($form->isSubmitted() && $form->isValid()) { |
|
87 | log_info('会員編集開始'); |
|
88 | ||
89 | if ($Customer->getPassword() === $this->eccubeConfig['eccube_default_password']) { |
|
90 | $Customer->setPassword($previous_password); |
|
91 | } else { |
|
92 | $encoder = $this->encoderFactory->getEncoder($Customer); |
|
93 | if ($Customer->getSalt() === null) { |
|
94 | $Customer->setSalt($encoder->createSalt()); |
|
95 | } |
|
96 | $Customer->setPassword( |
|
97 | $encoder->encodePassword($Customer->getPassword(), $Customer->getSalt()) |
|
98 | ); |
|
99 | } |
|
100 | $this->entityManager->flush(); |
|
101 | ||
102 | log_info('会員編集完了'); |
@@ 99-107 (lines=9) @@ | ||
96 | ||
97 | $encoder = $this->encoderFactory->getEncoder($Customer); |
|
98 | ||
99 | if ($Customer->getPassword() === $this->eccubeConfig['eccube_default_password']) { |
|
100 | $Customer->setPassword($previous_password); |
|
101 | } else { |
|
102 | if ($Customer->getSalt() === null) { |
|
103 | $Customer->setSalt($encoder->createSalt()); |
|
104 | $Customer->setSecretKey($this->customerRepository->getUniqueSecretKey()); |
|
105 | } |
|
106 | $Customer->setPassword($encoder->encodePassword($Customer->getPassword(), $Customer->getSalt())); |
|
107 | } |
|
108 | ||
109 | // 退会ステータスに更新の場合、ダミーのアドレスに更新 |
|
110 | $newStatusId = $Customer->getStatus()->getId(); |