Added the allowInvites account field

This commit is contained in:
Mathias Wagner 2023-01-22 19:51:20 +01:00
parent a176c484b9
commit ec4a391cb0
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -11,7 +11,8 @@ export interface IAccount {
verified: boolean, verified: boolean,
verificationSecret: number | undefined, verificationSecret: number | undefined,
totpSecret?: string, totpSecret?: string,
totpEnabled: boolean totpEnabled: boolean,
allowInvites: boolean
} }
const AccountSchema = new Schema<IAccount>({ const AccountSchema = new Schema<IAccount>({
@ -42,6 +43,10 @@ const AccountSchema = new Schema<IAccount>({
totpEnabled: { totpEnabled: {
type: Boolean, type: Boolean,
default: false default: false
},
allowInvites: {
type: Boolean,
default: true
} }
}); });