* fix: afterLogin hook conflict * test: afterLogin hook returns for assertion * chore: commit increment login attempt
25 lines
460 B
TypeScript
25 lines
460 B
TypeScript
import type { CollectionConfig } from '../../../packages/payload/src/collections/config/types'
|
|
|
|
import { usersCollectionSlug } from '../slugs'
|
|
|
|
export const Users: CollectionConfig = {
|
|
slug: usersCollectionSlug,
|
|
admin: {
|
|
useAsTitle: 'email',
|
|
},
|
|
auth: true,
|
|
fields: [
|
|
{
|
|
name: 'textField',
|
|
type: 'text',
|
|
},
|
|
{
|
|
name: 'sidebarField',
|
|
type: 'text',
|
|
admin: {
|
|
position: 'sidebar',
|
|
},
|
|
},
|
|
],
|
|
}
|