MCPcopy Create free account
hub / github.com/bytebase/bytebase / submitCode

Function submitCode

frontend/src/react/components/auth/EmailCodeSigninForm.tsx:81–91  ·  view source on GitHub ↗
(parts: string[])

Source from the content-addressed store, hash-verified

79 };
80
81 const submitCode = (parts: string[]) => {
82 const code = parts.join("");
83 if (!email || code.length !== 6) return;
84 onSignin(
85 create(LoginRequestSchema, {
86 email,
87 emailCode: code,
88 workspace: resolveWorkspaceName(),
89 })
90 );
91 };
92
93 const handleSubmit = async (e?: React.FormEvent) => {
94 if (e) e.preventDefault();

Callers 1

handleSubmitFunction · 0.85

Calls 1

resolveWorkspaceNameFunction · 0.90

Tested by

no test coverage detected