Merge pull request #1627 from thiagofernando/devel

Includes possibility to block username change
This commit is contained in:
Lauri Ojansivu 2018-05-08 01:31:01 +03:00 committed by GitHub
commit 0b9328a1be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 106 additions and 72 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,
},
});
});
}