From 0f6bfb53fc052c821497d170cbbd324bf4f0c133 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 14 Apr 2021 17:02:12 +0100 Subject: [PATCH] removing initial user creation --- .../components/start/CreateAppModal.svelte | 6 ------ .../src/components/start/Steps/User.svelte | 19 +------------------ packages/server/src/api/controllers/user.js | 3 ++- 3 files changed, 3 insertions(+), 25 deletions(-) diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index c727283b29..fcd5379733 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -25,10 +25,6 @@ applicationName: string().required("Your application must have a name."), } const userValidation = { - email: string() - .email() - .required("Your application needs a first user."), - password: string().required("Please enter a password for your first user."), roleId: string().required("You need to select a role for your user."), } @@ -153,8 +149,6 @@ // Create user const user = { - email: $createAppStore.values.email, - password: $createAppStore.values.password, roleId: $createAppStore.values.roleId, } const userResp = await api.post(`/api/users/metadata`, user) diff --git a/packages/builder/src/components/start/Steps/User.svelte b/packages/builder/src/components/start/Steps/User.svelte index 397a06be94..6bc4db711a 100644 --- a/packages/builder/src/components/start/Steps/User.svelte +++ b/packages/builder/src/components/start/Steps/User.svelte @@ -1,26 +1,9 @@ -

Create your first User

+

What's your role for this app?

- (blurred.email = true)} - label="Email" - name="email" - placeholder="Email" - type="email" - error={blurred.email && validationErrors.email} /> - (blurred.password = true)} - label="Password" - name="password" - placeholder="Password" - type="password" - error={blurred.password && validationErrors.password} />