diff --git a/src/models/Account.ts b/src/models/Account.ts index 2488b0b..c81c54d 100644 --- a/src/models/Account.ts +++ b/src/models/Account.ts @@ -11,7 +11,8 @@ export interface IAccount { verified: boolean, verificationSecret: number | undefined, totpSecret?: string, - totpEnabled: boolean + totpEnabled: boolean, + allowInvites: boolean } const AccountSchema = new Schema({ @@ -42,6 +43,10 @@ const AccountSchema = new Schema({ totpEnabled: { type: Boolean, default: false + }, + allowInvites: { + type: Boolean, + default: true } });