fix: user can be created without having to specify an email - #2801
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user