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