Includes possibility to block username change

This commit is contained in:
Thiago Fernando S. dos Santos 2018-05-04 16:44:50 -03:00
parent c48c18c4e9
commit 2fa1b3122d
47 changed files with 139 additions and 71 deletions

View file

@ -23,11 +23,17 @@ AccountSettings.allow({
if (Meteor.isServer) {
Meteor.startup(() => {
AccountSettings.upsert({ _id: 'accounts-allowEmailChange' }, {
AccountSettings.upsert({_id: 'accounts-allowEmailChange'}, {
$setOnInsert: {
booleanValue: false,
sort: 0,
},
});
AccountSettings.upsert({_id: 'accounts-allowUserNameChange'}, {
$setOnInsert: {
booleanValue: false,
sort: 1,
},
});
});
}