add: GitHub authentication
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
import type { CollectionConfig } from 'payload'
|
||||
|
||||
import { authenticated } from '../../access/authenticated'
|
||||
|
||||
export const Users: CollectionConfig = {
|
||||
slug: 'users',
|
||||
access: {
|
||||
admin: authenticated,
|
||||
create: authenticated,
|
||||
delete: authenticated,
|
||||
read: authenticated,
|
||||
update: authenticated,
|
||||
},
|
||||
admin: {
|
||||
defaultColumns: ['name', 'email'],
|
||||
useAsTitle: 'name',
|
||||
},
|
||||
auth: true,
|
||||
fields: [
|
||||
{
|
||||
name: 'name',
|
||||
type: 'text',
|
||||
},
|
||||
],
|
||||
timestamps: true,
|
||||
}
|
||||
7
src/collections/users.ts
Normal file
7
src/collections/users.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
// users.ts
|
||||
import type { CollectionConfig } from 'payload'
|
||||
|
||||
const Users: CollectionConfig = {
|
||||
slug: "users",
|
||||
fields: [],
|
||||
};
|
||||
Reference in New Issue
Block a user