1
0
Fork 0

add tier to user upon account creation

refactor/models
Matthew 2020-03-23 22:25:08 -04:00
parent 8e7a641c7b
commit ff97b32d5d
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ export default class Util {
await this.exec(`chage -d0 ${username}`); await this.exec(`chage -d0 ${username}`);
const account = new this.client.db.Account({ const account = new this.client.db.Account({
username, userID, emailAddress, createdBy: moderatorID, createdAt: new Date(), locked: false, ssInit: false, homepath: `/home/${username}`, username, userID, emailAddress, createdBy: moderatorID, createdAt: new Date(), locked: false, tier: 1, ssInit: false, homepath: `/home/${username}`,
}); });
return account.save(); return account.save();
} }