| @@ 121-135 (lines=15) @@ | ||
| 118 | { |
|
| 119 | $identity = $this->retrieveIdenityByCookie($userId, $series, Entity\Identity::STATUS_ACTIVE); |
|
| 120 | ||
| 121 | if ($identity->getId() === null) { |
|
| 122 | $this->logger->error('denial of service', [ |
|
| 123 | 'input' => [ |
|
| 124 | 'user' => $userId, |
|
| 125 | 'series' => $series, |
|
| 126 | 'key' => $key, |
|
| 127 | ], |
|
| 128 | 'account' => [ |
|
| 129 | 'user' => $identity->getUserId(), |
|
| 130 | 'identity' => $identity->getId(), |
|
| 131 | ], |
|
| 132 | ]); |
|
| 133 | ||
| 134 | throw new DenialOfServiceAttempt; |
|
| 135 | } |
|
| 136 | ||
| 137 | $mapper = $this->mapperFactory->create(Mapper\CookieIdentity::class); |
|
| 138 | ||
| @@ 235-249 (lines=15) @@ | ||
| 232 | { |
|
| 233 | $identity = $this->retrieveIdenityByCookie($userId, $series, Entity\Identity::STATUS_ACTIVE); |
|
| 234 | ||
| 235 | if ($identity->getId() === null) { |
|
| 236 | $this->logger->error('denial of service', [ |
|
| 237 | 'input' => [ |
|
| 238 | 'user' => $userId, |
|
| 239 | 'series' => $series, |
|
| 240 | 'key' => $key, |
|
| 241 | ], |
|
| 242 | 'account' => [ |
|
| 243 | 'user' => $identity->getUserId(), |
|
| 244 | 'identity' => $identity->getId(), |
|
| 245 | ], |
|
| 246 | ]); |
|
| 247 | ||
| 248 | throw new DenialOfServiceAttempt; |
|
| 249 | } |
|
| 250 | ||
| 251 | $mapper = $this->mapperFactory->create(Mapper\CookieIdentity::class); |
|
| 252 | ||