/**
  * Checks whether the given AuthenticationRequest has its own submit button.
  * @param AuthenticationRequest $req
  * @return bool
  */
 protected function hasOwnSubmitButton(AuthenticationRequest $req)
 {
     foreach ($req->getFieldInfo() as $field => $info) {
         if ($info['type'] === 'button') {
             return true;
         }
     }
     return false;
 }