Skip to content

fix: pass namespace when submitting login form with Enter#418

Open
shaunpatterson wants to merge 1 commit into
dgraph-io:mainfrom
shaunpatterson:sp/fix-namespace-enter-login
Open

fix: pass namespace when submitting login form with Enter#418
shaunpatterson wants to merge 1 commit into
dgraph-io:mainfrom
shaunpatterson:sp/fix-namespace-enter-login

Conversation

@shaunpatterson

Copy link
Copy Markdown
Contributor

One-line bug fix.

The login form's onSubmit handler called onLogin(userid, password) without the namespace argument, so submitting with Enter on a multi-tenancy cluster dispatched loginIntoNamespace with Number(undefined) = NaN instead of the namespace typed into the form. Clicking the Login button already passed it correctly — so the bug only bit keyboard users, which makes it confusing to reproduce.

🤖 Generated with Claude Code

The form's onSubmit handler called onLogin(userid, password) without
the namespace argument, so keyboard-submitted logins on multi-tenancy
clusters dispatched loginIntoNamespace with Number(undefined) = NaN
instead of the namespace typed into the form. The Login button already
passed it correctly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@shaunpatterson shaunpatterson requested a review from a team as a code owner June 12, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant