diff --git a/app/src/cli/commands/user.ts b/app/src/cli/commands/user.ts index 06b5296..cdf51a1 100644 --- a/app/src/cli/commands/user.ts +++ b/app/src/cli/commands/user.ts @@ -66,17 +66,17 @@ async function create(app: App, options: any) { try { const mutator = app.modules.ctx().em.mutator(users_entity); - mutator.__unstable_toggleSystemEntityCreation(true); + mutator.__unstable_toggleSystemEntityCreation(false); const res = await mutator.insertOne({ email, strategy: "password", strategy_value: await strategy.hash(password as string) }); - mutator.__unstable_toggleSystemEntityCreation(false); + mutator.__unstable_toggleSystemEntityCreation(true); console.log("Created:", res.data); } catch (e) { - console.error("Error"); + console.error("Error", e); } } diff --git a/app/src/ui/routes/auth/auth.settings.tsx b/app/src/ui/routes/auth/auth.settings.tsx index 3171e33..dd387b2 100644 --- a/app/src/ui/routes/auth/auth.settings.tsx +++ b/app/src/ui/routes/auth/auth.settings.tsx @@ -21,6 +21,8 @@ export function AuthSettingsList() { navigate(app.getSettingsPath(["auth"])); }, []); + return null; + /*useBknd({ withSecrets: true }); return ;*/ }