mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-15 19:33:44 +00:00
tests
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
getLegalAndSupportSettings,
|
||||
getPasswordComplexitySettings,
|
||||
} from "@/lib/zitadel";
|
||||
import { Organization } from "@zitadel/proto/zitadel/org/v2/org_pb";
|
||||
import { getLocale, getTranslations } from "next-intl/server";
|
||||
|
||||
export default async function Page({
|
||||
@@ -21,11 +22,16 @@ export default async function Page({
|
||||
searchParams;
|
||||
|
||||
if (!organization) {
|
||||
const org = await getDefaultOrg();
|
||||
const org: Organization | void = await getDefaultOrg().catch((error) => {
|
||||
console.log("err");
|
||||
});
|
||||
if (!org) {
|
||||
console.log("no default organization");
|
||||
throw new Error("No default organization found");
|
||||
}
|
||||
|
||||
console.log("org", org);
|
||||
|
||||
organization = org.id;
|
||||
}
|
||||
|
||||
|
||||
@@ -185,7 +185,10 @@ export function RegisterFormWithoutPassword({
|
||||
variant={ButtonVariants.Primary}
|
||||
disabled={loading || !formState.isValid || !tosAndPolicyAccepted}
|
||||
onClick={handleSubmit((values) =>
|
||||
submitAndContinue(values, selected === methods[0] ? false : true),
|
||||
submitAndContinue(
|
||||
values,
|
||||
selected.name === methods[0].name ? false : true,
|
||||
),
|
||||
)}
|
||||
>
|
||||
{loading && <Spinner className="h-5 w-5 mr-2" />}
|
||||
|
||||
Reference in New Issue
Block a user