| @@ 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 | ||
| @@ 212-226 (lines=15) @@ | ||
| 209 | { |
|
| 210 | $identity = $this->retrieveIdenityByCookie($userId, $series, Entity\Identity::STATUS_ACTIVE); |
|
| 211 | ||
| 212 | if ($identity->getId() === null) { |
|
| 213 | $this->logger->error('denial of service', [ |
|
| 214 | 'input' => [ |
|
| 215 | 'user' => $userId, |
|
| 216 | 'series' => $series, |
|
| 217 | 'key' => $key, |
|
| 218 | ], |
|
| 219 | 'account' => [ |
|
| 220 | 'user' => $identity->getUserId(), |
|
| 221 | 'identity' => $identity->getId(), |
|
| 222 | ], |
|
| 223 | ]); |
|
| 224 | ||
| 225 | throw new DenialOfServiceAttempt; |
|
| 226 | } |
|
| 227 | ||
| 228 | $mapper = $this->mapperFactory->create(Mapper\CookieIdentity::class); |
|
| 229 | ||