From af0db23af38f9b1353377fb6737156dc4b4b8a9e Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 16 Nov 2019 23:43:05 +0000 Subject: [PATCH] Prep for SecureSign CLI integration --- src/class/Util.ts | 2 +- src/models/Account.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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);