1
0
Fork 0

Prep for SecureSign CLI integration

refactor/models
Bsian 2019-11-16 23:43:05 +00:00
parent 44ddfa0511
commit af0db23af3
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,7 @@ export default class Util {
await this.exec(`chage -d0 ${username}`); await this.exec(`chage -d0 ${username}`);
const account = await new this.client.db.Account({ 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(); return account.save();
} }

View File

@ -15,6 +15,7 @@ export interface AccountInterface extends Document {
engineer: boolean engineer: boolean
}, },
root: boolean root: boolean
ssInit: boolean
} }
const Account: Schema = new Schema({ const Account: Schema = new Schema({
@ -32,6 +33,7 @@ const Account: Schema = new Schema({
engineer: Boolean, engineer: Boolean,
}, },
root: Boolean, root: Boolean,
ssInit: Boolean,
}); });
export default model<AccountInterface>('Account', Account); export default model<AccountInterface>('Account', Account);