|
@@ -91,7 +91,8 @@ |
|
|
block discarded – undo |
|
91
|
91
|
$form = $this->createForm(DefaultLoginType::class, ['uid' => $uid]); |
|
92
|
92
|
$loginFormEvent = new UserFormAwareEvent($form); |
|
93
|
93
|
$dispatcher->dispatch(AccessEvents::AUTHENTICATION_FORM, $loginFormEvent); |
|
94
|
|
- if ($form->count() > 3) { // count > 3 means that the AUTHENTICATION_FORM event added some form children |
|
|
94
|
+ if ($form->count() > 3) { |
|
|
95
|
+// count > 3 means that the AUTHENTICATION_FORM event added some form children |
|
95
|
96
|
$form->handleRequest($request); |
|
96
|
97
|
if ($form->isValid() && $form->isSubmitted()) { |
|
97
|
98
|
$uid = $form->get('uid')->getData(); |
Please login to merge, or discard this patch.