@@ -190,7 +190,7 @@ |
||
190 | 190 | ); |
191 | 191 | } catch (\Exception $e) { |
192 | 192 | if ($this->dispatcher->hasListeners(U2fAuthenticationFailureEvent::getName())) { |
193 | - $counter = $this->session->get('u2f_registration_error_counter', 0) +1; |
|
193 | + $counter = $this->session->get('u2f_registration_error_counter', 0)+1; |
|
194 | 194 | $this->session->set('u2f_registration_error_counter', $counter); |
195 | 195 | $this->dispatcher->dispatch(U2fAuthenticationFailureEvent::getName(), new U2fAuthenticationFailureEvent($user, $e, $counter)); |
196 | 196 | } |
@@ -142,7 +142,7 @@ |
||
142 | 142 | * If the user isn't on a whitelisted route, he is redirected to the authentication page. |
143 | 143 | */ |
144 | 144 | if (!in_array($route, $whitelist)) { |
145 | - $counter = $this->session->get('u2f_registration_error_counter', -1) +1; |
|
145 | + $counter = $this->session->get('u2f_registration_error_counter', -1)+1; |
|
146 | 146 | $this->session->set('u2f_registration_error_counter', $counter); |
147 | 147 | $event->setResponse(new RedirectResponse($this->router->generate($this->redirectToRoute))); |
148 | 148 | $event->stopPropagation(); |