| @@ 158-167 (lines=10) @@ | ||
| 155 | $this->entityManager->persist($CustomerAddress); |
|
| 156 | } |
|
| 157 | ||
| 158 | if ($Customer->getPassword() === $this->appConfig['default_password']) { |
|
| 159 | $Customer->setPassword($previous_password); |
|
| 160 | } else { |
|
| 161 | if ($Customer->getSalt() === null) { |
|
| 162 | $Customer->setSalt($this->customerRepository->createSalt(5)); |
|
| 163 | } |
|
| 164 | $Customer->setPassword( |
|
| 165 | $this->customerRepository->encryptPassword($app, $Customer) |
|
| 166 | ); |
|
| 167 | } |
|
| 168 | ||
| 169 | $this->entityManager->persist($Customer); |
|
| 170 | $this->entityManager->flush(); |
|
| @@ 120-129 (lines=10) @@ | ||
| 117 | ||
| 118 | log_info('会員編集開始'); |
|
| 119 | ||
| 120 | if ($Customer->getPassword() === $this->appConfig['default_password']) { |
|
| 121 | $Customer->setPassword($previous_password); |
|
| 122 | } else { |
|
| 123 | if ($Customer->getSalt() === null) { |
|
| 124 | $Customer->setSalt($this->customerRepository->createSalt(5)); |
|
| 125 | } |
|
| 126 | $Customer->setPassword( |
|
| 127 | $this->customerRepository->encryptPassword($app, $Customer) |
|
| 128 | ); |
|
| 129 | } |
|
| 130 | $this->entityManager->flush(); |
|
| 131 | ||
| 132 | log_info('会員編集完了'); |
|