fixes bugs within auth / graphQL
This commit is contained in:
@@ -10,14 +10,4 @@ module.exports = [
|
||||
disabled: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'resetPasswordToken',
|
||||
type: 'text',
|
||||
hidden: true,
|
||||
},
|
||||
{
|
||||
name: 'resetPasswordExpiration',
|
||||
type: 'date',
|
||||
hidden: true,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -94,9 +94,10 @@ function registerCollections() {
|
||||
singularLabel,
|
||||
);
|
||||
|
||||
if (collection.auth) {
|
||||
if (collection.config.auth) {
|
||||
fields.push({
|
||||
name: 'password',
|
||||
label: 'Password',
|
||||
type: 'text',
|
||||
required: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user