Added the allowInvites account field
This commit is contained in:
parent
a176c484b9
commit
ec4a391cb0
@ -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
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user