diff --git a/src/class/Util.ts b/src/class/Util.ts index 2d3cf4b..5fe2862 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -169,7 +169,7 @@ export default class Util { await this.exec(`chage -d0 ${username}`); const account = await new this.client.db.Account({ - username, userID, emailAddress, createdBy: moderatorID, createdAt: new Date(), locked: false, + username, userID, emailAddress, createdBy: moderatorID, createdAt: new Date(), locked: false, ssInit: false, }); return account.save(); } diff --git a/src/models/Account.ts b/src/models/Account.ts index db26a2c..3f5a35b 100644 --- a/src/models/Account.ts +++ b/src/models/Account.ts @@ -15,6 +15,7 @@ export interface AccountInterface extends Document { engineer: boolean }, root: boolean + ssInit: boolean } const Account: Schema = new Schema({ @@ -32,6 +33,7 @@ const Account: Schema = new Schema({ engineer: Boolean, }, root: Boolean, + ssInit: Boolean, }); export default model('Account', Account);