Skip to content

fix(idp): say the first admin account is separate from the Customer Center login (OHE-4113) - #1404

Merged
hieptl merged 3 commits into
mainfrom
hiep/ohe-4113-onboarding-customer-center-login-and-self
Nov 18, 2026
Merged

hieptl merged 3 commits into
mainfrom
hiep/ohe-4113-onboarding-customer-center-login-and-self

Conversation

@hieptl

@hieptl hieptl commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

HUMAN:

  • A human has tested these changes.

AGENT:


Why

On a Docker Compose install, the person installing signs in to Customer Center with an email and password to get the license key. When the server starts, the first screen asks for an email and password again, under "Create Admin Account". The two accounts are unrelated by design, but nothing on the form said so, and in the OHE 2 jam session people expected their Customer Center login to carry over.

Summary

  • The "Create Admin Account" form now reads: "Create the first administrator account for this installation. This is a new local account, separate from your Customer Center login."
  • The "Sign In" form is unchanged. Users who are invited later never see Customer Center, so the note would only confuse them.
  • One new test in tests/unit/server/routes/test_idp.py.

Issue Number

OHE-4113. No GitHub issue.

How to Test

Unit tests:

uv run pytest tests/unit/server/routes/test_idp.py

The 152 tests in the file pass. The new one fails without the change to server/routes/idp.py.

Manual steps:

  1. On a machine with no volumes from an earlier run, start the stack with ./scripts/setup.sh and open the URL it prints.
  2. The "Create Admin Account" form shows the new sentence under the title.
  3. Create the account, sign out, and open the app again. The "Sign In" form still reads "Sign in to your OpenHands account."

Only the unit tests and the backend pre-commit hooks were run. The manual steps on a running stack were not run; the screenshots below come from rendering the form's HTML directly.

Video/Screenshots

Both are the sign-up form's HTML rendered in headless Chromium, not a running install.

Before:

Before: the form says only that this is the first administrator account

After:

After: the form adds that the account is separate from the Customer Center login

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes

  • Copy only. The two accounts stay unlinked, as the ticket asks, and nothing about sign-up or sign-in changes.
  • The form is server-rendered English HTML with no translations, so there are no locale files to update.
  • The ticket also suggests saying this in Customer Center and in the install docs. Neither is in this PR. The published Docker Compose guide does not mention Customer Center yet, so the sentence would have nothing to refer to there.
  • A Compose user who never used Customer Center sees the sentence too. It is still true, and the next screen (the license step) already names Customer Center.
  • .pr/ohe-4113/ holds the two screenshots and is removed automatically when the PR is approved.

Enterprise server image for this PR:

ghcr.io/openhands/enterprise-server:sha-16dcb18

…enter login (OHE-4113)

On a Docker Compose install, the person installing signs in to Customer
Center with an email and password to get the license key, and is then
asked for an email and password again on the "Create Admin Account"
form. The two accounts are unrelated by design, but the form did not
say so, and people expected their Customer Center login to carry over.

The form's description now ends with "This is a new local account,
separate from your Customer Center login." The sign-in form is
unchanged, because users who are invited later never see Customer
Center.

Adds a test for the new sentence. The before and after screenshots for
the pull request are in .pr/ohe-4113.
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Artifacts Cleaned Up

The .pr/ directory has been automatically removed.

@github-actions github-actions Bot added the type: fix A bug fix label Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  server/routes
  idp.py 498
Project Total  

This report was generated by python-coverage-comment-action

@hieptl
hieptl marked this pull request as ready for review November 17, 2026 02:36

@tofarr tofarr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍰

@hieptl
hieptl merged commit af4daec into main Nov 18, 2026
23 of 24 checks passed
@hieptl
hieptl deleted the hiep/ohe-4113-onboarding-customer-center-login-and-self branch November 18, 2026 11:56
@openhands-release-bot openhands-release-bot Bot added the released: 1.95.0 Shipped in 1.95.0 label Nov 19, 2026
@openhands-release-bot

Copy link
Copy Markdown
Contributor

🚀 Released in 1.95.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released: 1.95.0 Shipped in 1.95.0 type: fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants