Skip to content

Commit 1e1850e

Browse files
committed
refactor(dev): Make additionalUserDatabaseField optional to allow registrations
1 parent cfa143d commit 1e1850e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/dev/src/auth.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ export const authConfig: NextAuthConfig = {
8080
nodemailer({
8181
server: process.env.EMAIL_SERVER,
8282
from: process.env.EMAIL_FROM,
83-
/* sendVerificationRequest: ({ url }) => {
83+
sendVerificationRequest: ({ url }) => {
8484
console.log("nodemailer:", url);
85-
}, */
85+
},
8686
}),
8787
],
8888
session: {

packages/dev/src/payload-types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export interface Config {
6464
auth: {
6565
users: UserAuthOperations;
6666
};
67+
blocks: {};
6768
collections: {
6869
users: User;
6970
examples: Example;
@@ -121,7 +122,7 @@ export interface User {
121122
emailVerified?: string | null;
122123
name?: string | null;
123124
image?: string | null;
124-
additionalUserDatabaseField: string;
125+
additionalUserDatabaseField?: string | null;
125126
additionalUserVirtualField?: string | null;
126127
locale?: string | null;
127128
roles?: string[];

packages/dev/src/payload/collections/users.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ const Users: CollectionConfig = {
120120
{
121121
name: "additionalUserDatabaseField",
122122
type: "text",
123-
required: true,
124123
},
125124
// Add custom virtual field
126125
{

0 commit comments

Comments
 (0)