You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(console): dev-seeded admin credentials hint on the login page (#2635)
The framework seeds admin@objectos.ai/admin123 on an empty dev DB, but
the login page gave no signal it exists — new users signed up and fell
into an empty non-admin workspace (framework 15.1 third-party eval P2).
Render a dismissible amber banner above the login card when
/api/v1/auth/config reports devSeedAdmin. The field is server-gated:
present only under NODE_ENV=development while the seed account still
verifies against the default password (framework#3108), so production
can never show it. Dismissal persists per browser
(os.console.devAdminHintDismissed).
Browser-verified against a real dev backend: banner renders (zh locale),
dismiss hides + survives reload, clearing the flag restores it; absent
config renders nothing. 3 new vitest cases.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Login page surfaces the dev-seeded admin credentials. The framework runtime seeds `admin@objectos.ai` on an empty development database, but nothing on the login page said so — new users clicked "Sign up" and landed in an empty non-admin workspace (15.1 third-party eval). When `GET /api/v1/auth/config` reports `devSeedAdmin` (dev-only; the server omits the field in production and once the default password is changed), the page renders a dismissible amber banner with the credentials. Dismissal persists per browser via localStorage.
0 commit comments