Prep for SecureSign CLI integration
parent
44ddfa0511
commit
af0db23af3
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue