[Bug]: "Additional Information" modal after login crashes and blocks all GUI access (self-hosted)
Issue Description
After promoting an existing self-hosted user to role "Admin" (UserRole field in contracts_Users), logging in triggers an "Additional Information" modal asking for Company and Job Title. Both fields are already correctly populated in MongoDB (contracts_Users.Company, contracts_Users.JobTitle), and the linked contracts_Organizations.Name / partners_Tenant.TenantName are also populated.
Submitting the modal (with the fields filled in) throws uncaught exceptions in the client bundle and never proceeds - the user is completely locked out of the web GUI (login succeeds, but the app never gets past this modal).
Console errors on submit:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'message') at J (Login-CbVm_cSH.js:1:5399) at onClick (Login-CbVm_cSH.js:1) ...
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'replace') at J (Login-CbVm_cSH.js:1:5426) at onClick (Login-CbVm_cSH.js:1:12250) ...
Network tab shows no failed (non-2xx) requests during the crash - the exception appears to be purely client-side.
Additional context: the official self-hosted migration endpoint (/upgrade-2.1) refused to promote the user ("Admin already exists, please log in with admin credentials"), even though no user in the database had UserRole set to "Admin" or "OrgAdmin" at that point (the account had a legacy value, UserRole: "contracts_Admin", from before upgrading to a newer self-hosted build). We had to set UserRole to "Admin" directly in MongoDB as a workaround, which is what exposed the modal crash. This "admin already exists" check may itself be a related bug.
Troubleshooting already done:
- Tried Incognito window and manually clearing cookies/site data - identical crash reproduces immediately every time.
- Verified via direct MongoDB queries that Company, JobTitle, Organization name and Tenant name are all populated for the affected user.
- Tried pinning to a specific released version as a workaround, but found that opensign/opensign and opensign/opensignserver on Docker Hub only publish "main", "staging" and a legacy 2024 "docker_beta" tag - no tags matching the versioned GitHub releases (e.g. v2.38.0) exist, so we could not test against a pinned stable build.
Expected Behavior
After filling in Company and Job Title (or when they are already set) and clicking the submit/login button in the "Additional Information" modal, the user should proceed into the app (dashboard).
Current Behavior
Clicking submit throws uncaught promise rejections in Login-.js ("Cannot read properties of undefined (reading 'message')" / "...(reading 'replace')"). The modal never closes and the user cannot access the GUI at all, even though Company/JobTitle are already correctly set in the database.
Steps to reproduce
- Self-hosted OpenSign via Docker Compose (images opensign/opensignserver:main and opensign/opensign:main).
- Have an existing user whose contracts_Users.UserRole is set to "Admin" (in our case set manually via MongoDB, since the /upgrade-2.1 wizard refused to run - see Additional context above).
- Log in with that user's credentials.
- The "Additional Information" modal (Unternehmen/Company, Berufsbezeichnung/ Job Title) appears.
- Fill in both fields (or note they are already correct in the DB) and click the submit/login button.
- Observe the console errors above; the modal does not proceed and the app never loads.
Screenshots of the issue(optional)
No response
Operating System [e.g. MacOS Sonoma 14.1, Windows 11]
Docker on Synology DSM (Linux)
What browsers are you seeing the problem on?
Chrome
What version of OpenSign™ are you seeing this issue on? [e.g. 1.0.6]
Unknown exact version - self-hosted via the "main" Docker tag (no pinned release tags are published on Docker Hub for opensign/opensign or opensign/opensignserver). Image last pushed 2026-06-30 according to Docker Hub. (2.41)
What environment are you seeing the problem on?
Dev (localhost or vercel)
Please check the boxes that apply to this issue report.
- I have searched the existing issues & discussions to make sure that this is not a duplicate.
Code of Conduct
- I agree to follow this project's Code of Conduct
- I have searched the existing issues & discussions to make sure that this is not a duplicate.
Source: OpenSignLabs/OpenSign