fixes bugs within auth / graphQL

This commit is contained in:
James
2020-09-07 14:47:03 -04:00
parent 4616e7fa16
commit 6fe09c8264
2 changed files with 2 additions and 11 deletions

View File

@@ -10,14 +10,4 @@ module.exports = [
disabled: true,
},
},
{
name: 'resetPasswordToken',
type: 'text',
hidden: true,
},
{
name: 'resetPasswordExpiration',
type: 'date',
hidden: true,
},
];

View File

@@ -94,9 +94,10 @@ function registerCollections() {
singularLabel,
);
if (collection.auth) {
if (collection.config.auth) {
fields.push({
name: 'password',
label: 'Password',
type: 'text',
required: true,
});