From 6fe09c8264d75fb043d5d5329349c3ee274fc17f Mon Sep 17 00:00:00 2001 From: James Date: Mon, 7 Sep 2020 14:47:03 -0400 Subject: [PATCH] fixes bugs within auth / graphQL --- src/auth/baseFields.js | 10 ---------- src/collections/graphql/init.js | 3 ++- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/auth/baseFields.js b/src/auth/baseFields.js index 1bf74a1e2b..4304f7499f 100644 --- a/src/auth/baseFields.js +++ b/src/auth/baseFields.js @@ -10,14 +10,4 @@ module.exports = [ disabled: true, }, }, - { - name: 'resetPasswordToken', - type: 'text', - hidden: true, - }, - { - name: 'resetPasswordExpiration', - type: 'date', - hidden: true, - }, ]; diff --git a/src/collections/graphql/init.js b/src/collections/graphql/init.js index e68209748d..2057587e2e 100644 --- a/src/collections/graphql/init.js +++ b/src/collections/graphql/init.js @@ -94,9 +94,10 @@ function registerCollections() { singularLabel, ); - if (collection.auth) { + if (collection.config.auth) { fields.push({ name: 'password', + label: 'Password', type: 'text', required: true, });