fix: user can be created without having to specify an email - #2801

This commit is contained in:
Alessio Gravili
2023-06-12 17:35:06 +02:00
committed by GitHub
parent 46a5f41721
commit abe38520aa

View File

@@ -11,6 +11,7 @@ const baseAuthFields: Field[] = [
type: 'email',
validate: email,
unique: true,
required: true,
admin: {
components: {
Field: () => null,
@@ -36,7 +37,7 @@ const baseAuthFields: Field[] = [
name: 'hash',
type: 'text',
hidden: true,
}
},
];
export default baseAuthFields
export default baseAuthFields;