From 550ea1a70dacd4155871617ced61042b29ea8250 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 19 May 2021 11:06:57 +0100 Subject: [PATCH] Add missing properties to first name and last name user schema --- .../portal/manage/oauth/_logos/Google.svelte | 43 ------- .../builder/portal/manage/oauth/index.svelte | 115 ------------------ .../builder/portal/oauth/_logos/Google.svelte | 43 ------- .../pages/builder/portal/oauth/index.svelte | 114 ----------------- packages/server/src/constants/index.js | 18 +++ 5 files changed, 18 insertions(+), 315 deletions(-) delete mode 100644 packages/builder/src/pages/builder/portal/manage/oauth/_logos/Google.svelte delete mode 100644 packages/builder/src/pages/builder/portal/manage/oauth/index.svelte delete mode 100644 packages/builder/src/pages/builder/portal/oauth/_logos/Google.svelte delete mode 100644 packages/builder/src/pages/builder/portal/oauth/index.svelte diff --git a/packages/builder/src/pages/builder/portal/manage/oauth/_logos/Google.svelte b/packages/builder/src/pages/builder/portal/manage/oauth/_logos/Google.svelte deleted file mode 100644 index 5686e50abc..0000000000 --- a/packages/builder/src/pages/builder/portal/manage/oauth/_logos/Google.svelte +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - diff --git a/packages/builder/src/pages/builder/portal/manage/oauth/index.svelte b/packages/builder/src/pages/builder/portal/manage/oauth/index.svelte deleted file mode 100644 index f9d2c49cfd..0000000000 --- a/packages/builder/src/pages/builder/portal/manage/oauth/index.svelte +++ /dev/null @@ -1,115 +0,0 @@ - - - -
- OAuth - - Every budibase app comes with basic authentication (email/password) - included. You can add additional authentication methods from the options - below. - -
- - {#if google} -
- - - - - Google - - - {#each ConfigFields.Google as field} -
- - -
- {/each} -
- -
- - {/if} -
- - diff --git a/packages/builder/src/pages/builder/portal/oauth/_logos/Google.svelte b/packages/builder/src/pages/builder/portal/oauth/_logos/Google.svelte deleted file mode 100644 index 5686e50abc..0000000000 --- a/packages/builder/src/pages/builder/portal/oauth/_logos/Google.svelte +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - diff --git a/packages/builder/src/pages/builder/portal/oauth/index.svelte b/packages/builder/src/pages/builder/portal/oauth/index.svelte deleted file mode 100644 index f8d9b43dec..0000000000 --- a/packages/builder/src/pages/builder/portal/oauth/index.svelte +++ /dev/null @@ -1,114 +0,0 @@ - - - - -
- OAuth - - Every budibase app comes with basic authentication (email/password) - included. You can add additional authentication methods from the options - below. - -
- - {#if google} -
- - - - Google - - - - To allow users to authenticate using their Google accounts, fill out - the fields below. - -
- - {#each ConfigFields.Google as field} -
- - -
- {/each} -
- -
- - {/if} -
-
- - diff --git a/packages/server/src/constants/index.js b/packages/server/src/constants/index.js index e4a65a94f6..7d80f67a1c 100644 --- a/packages/server/src/constants/index.js +++ b/packages/server/src/constants/index.js @@ -50,6 +50,24 @@ exports.USERS_TABLE_SCHEMA = { fieldName: "email", name: "email", }, + firstName: { + name: "firstName", + fieldName: "firstName", + type: exports.FieldTypes.STRING, + constraints: { + type: exports.FieldTypes.STRING, + presence: false, + }, + }, + lastName: { + name: "lastName", + fieldName: "lastName", + type: exports.FieldTypes.STRING, + constraints: { + type: exports.FieldTypes.STRING, + presence: false, + }, + }, roleId: { fieldName: "roleId", name: "roleId",