Skip to content

Instantly share code, notes, and snippets.

@JWPapi
Created September 25, 2019 08:33
Show Gist options
  • Save JWPapi/3009ef007b980b693e384bc458e2d4f7 to your computer and use it in GitHub Desktop.
Save JWPapi/3009ef007b980b693e384bc458e2d4f7 to your computer and use it in GitHub Desktop.
$form = $this->createFormBuilder()
->add('username', TextType::class)
->add('password', TextType::class)
->add('save', SubmitType::class, ['label' => 'Add Account'])
->getForm();
$twoFactorform = $this->createFormBuilder()
->add('Code', TextType::class)
->getForm();
$form->handleRequest($request);
#???$twoFactorform->handleRequest($request);?????
if ($twoFactorform->Submitted()) {
}
if ($form->isSubmitted()) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment