# Bug OP-19758 - WebAuthn Form not submitting

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-19758

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Authentication, DevSecOps / Security |
| Target versions | 17.7.0 |
| Observed in versions | 17.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Register new WebAuthn device in security.

2.  After entering pin in browser nothing happens.

### What is the buggy behavior?

  - After registering WebAuthn device nothing happens.

### What is the expected behavior?

1.  Device should be registered.

### **Logs**

*There are no errors in the console, but I was able to debug this in the js files directly in the browser and found the following error:*

*TypeError: form.submit is not a function*  
   *at extended.\<anonymous\> (<https://openproject.masshardt.ch/assets/frontend/src/stimulus/controllers/dynamic/two-factor-authentication.controller-2HETXE64.js:885:16>)*  
   *at Generator.next (\<anonymous\>)*  
   *at fulfilled (<https://openproject.masshardt.ch/assets/frontend/chunk-Z77EMKUX.js:81:24>)*  
     
Here is the link to the line where the error happens:

<https://github.com/opf/openproject/blob/e7f4e9d0a1bebce28e17fd0e80774b37e06aba3f/frontend/src/stimulus/controllers/dynamic/two-factor-authentication.controller.ts#L66>

I was able to submit the form in the browser console with: HTMLFormElement.prototype.submit.call(form)

### Screenshots and other files

*Nothing interesting to screenshot here.*

### Environment information

**OpenProject installation type**

  - Docker All-in-one container

  - Docker-compose installation

**OpenProject version**

*17.6.0*

**Browser**

- [x] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux Ubuntu
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

de
