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,7 +23,7 @@ BlazeComponent.extendComponent({
checkField(selector) { checkField(selector) {
const value = $(selector).val(); const value = $(selector).val();
if(!value || value.trim() === ''){ if (!value || value.trim() === '') {
$(selector).parents('li.smtp-form').addClass('has-error'); $(selector).parents('li.smtp-form').addClass('has-error');
throw Error('blank field'); throw Error('blank field');
} else { } else {
@ -31,7 +31,7 @@ BlazeComponent.extendComponent({
} }
}, },
currentSetting(){ currentSetting() {
return Settings.findOne(); return Settings.findOne();
}, },
@ -44,23 +44,23 @@ BlazeComponent.extendComponent({
sort: ['title'], sort: ['title'],
}); });
}, },
toggleRegistration(){ toggleRegistration() {
this.setLoading(true); this.setLoading(true);
const registrationClosed = this.currentSetting().disableRegistration; const registrationClosed = this.currentSetting().disableRegistration;
Settings.update(Settings.findOne()._id, {$set:{disableRegistration: !registrationClosed}}); Settings.update(Settings.findOne()._id, {$set: {disableRegistration: !registrationClosed}});
this.setLoading(false); this.setLoading(false);
if(registrationClosed){ if (registrationClosed) {
$('.invite-people').slideUp(); $('.invite-people').slideUp();
}else{ } else {
$('.invite-people').slideDown(); $('.invite-people').slideDown();
} }
}, },
toggleTLS(){ toggleTLS() {
$('#mail-server-tls').toggleClass('is-checked'); $('#mail-server-tls').toggleClass('is-checked');
}, },
switchMenu(event){ switchMenu(event) {
const target = $(event.target); const target = $(event.target);
if(!target.hasClass('active')){ if (!target.hasClass('active')) {
$('.side-menu li.active').removeClass('active'); $('.side-menu li.active').removeClass('active');
target.parent().addClass('active'); target.parent().addClass('active');
const targetID = target.data('id'); const targetID = target.data('id');
@ -71,9 +71,9 @@ BlazeComponent.extendComponent({
} }
}, },
checkBoard(event){ checkBoard(event) {
let target = $(event.target); let target = $(event.target);
if(!target.hasClass('js-toggle-board-choose')){ if (!target.hasClass('js-toggle-board-choose')) {
target = target.parent(); target = target.parent();
} }
const checkboxId = target.attr('id'); const checkboxId = target.attr('id');
@ -81,7 +81,7 @@ BlazeComponent.extendComponent({
$(`#${checkboxId}`).toggleClass('is-checked'); $(`#${checkboxId}`).toggleClass('is-checked');
}, },
inviteThroughEmail(){ inviteThroughEmail() {
const emails = $('#email-to-invite').val().trim().split('\n').join(',').split(','); const emails = $('#email-to-invite').val().trim().split('\n').join(',').split(',');
const boardsToInvite = []; const boardsToInvite = [];
$('.js-toggle-board-choose .materialCheckBox.is-checked').each(function () { $('.js-toggle-board-choose .materialCheckBox.is-checked').each(function () {
@ -104,19 +104,23 @@ BlazeComponent.extendComponent({
} }
}, },
saveMailServerInfo(){ saveMailServerInfo() {
this.setLoading(true); this.setLoading(true);
$('li').removeClass('has-error'); $('li').removeClass('has-error');
try{ try {
const host = this.checkField('#mail-server-host'); const host = this.checkField('#mail-server-host');
const port = this.checkField('#mail-server-port'); const port = this.checkField('#mail-server-port');
const username = $('#mail-server-username').val().trim(); const username = $('#mail-server-username').val().trim();
const password = $('#mail-server-password').val().trim(); const password = $('#mail-server-password').val().trim();
const from = this.checkField('#mail-server-from'); const from = this.checkField('#mail-server-from');
const tls = $('#mail-server-tls.is-checked').length > 0; const tls = $('#mail-server-tls.is-checked').length > 0;
Settings.update(Settings.findOne()._id, {$set:{'mailServer.host':host, 'mailServer.port': port, 'mailServer.username': username, Settings.update(Settings.findOne()._id, {
'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from}}); $set: {
'mailServer.host': host, 'mailServer.port': port, 'mailServer.username': username,
'mailServer.password': password, 'mailServer.enableTLS': tls, 'mailServer.from': from,
},
});
} catch (e) { } catch (e) {
return; return;
} finally { } finally {
@ -136,11 +140,12 @@ BlazeComponent.extendComponent({
const message = `${TAPi18n.__(err.error)}\n${reason}`; const message = `${TAPi18n.__(err.error)}\n${reason}`;
console.log(message, err); console.log(message, err);
alert(message); alert(message);
} /* eslint-enable no-console */ }
/* eslint-enable no-console */
}); });
}, },
events(){ events() {
return [{ return [{
'click a.js-toggle-registration': this.toggleRegistration, 'click a.js-toggle-registration': this.toggleRegistration,
'click a.js-toggle-tls': this.toggleTLS, 'click a.js-toggle-tls': this.toggleTLS,
@ -154,20 +159,28 @@ BlazeComponent.extendComponent({
}).register('setting'); }).register('setting');
BlazeComponent.extendComponent({ BlazeComponent.extendComponent({
saveAllowEmailChange() {
saveAccountsChange() {
const allowEmailChange = ($('input[name=allowEmailChange]:checked').val() === 'true'); const allowEmailChange = ($('input[name=allowEmailChange]:checked').val() === 'true');
const allowUserNameChange = ($('input[name=allowUserNameChange]:checked').val() === 'true');
AccountSettings.update('accounts-allowEmailChange', { AccountSettings.update('accounts-allowEmailChange', {
$set: { 'booleanValue': allowEmailChange }, $set: {'booleanValue': allowEmailChange},
});
AccountSettings.update('accounts-allowUserNameChange', {
$set: {'booleanValue': allowUserNameChange},
}); });
}, },
allowEmailChange() { allowEmailChange() {
return AccountSettings.findOne('accounts-allowEmailChange').booleanValue; return AccountSettings.findOne('accounts-allowEmailChange').booleanValue;
}, },
allowUserNameChange() {
return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue;
},
events() { events() {
return [{ return [{
'click button.js-accounts-save': this.saveAllowEmailChange, 'click button.js-accounts-save': this.saveAccountsChange,
}]; }];
}, },
}).register('accountSettings'); }).register('accountSettings');
@ -181,27 +194,27 @@ BlazeComponent.extendComponent({
this.loading.set(w); this.loading.set(w);
}, },
currentSetting(){ currentSetting() {
return Announcements.findOne(); return Announcements.findOne();
}, },
saveMessage() { saveMessage() {
const message = $('#admin-announcement').val().trim(); const message = $('#admin-announcement').val().trim();
Announcements.update(Announcements.findOne()._id, { Announcements.update(Announcements.findOne()._id, {
$set: { 'body': message }, $set: {'body': message},
}); });
}, },
toggleActive(){ toggleActive() {
this.setLoading(true); this.setLoading(true);
const isActive = this.currentSetting().enabled; const isActive = this.currentSetting().enabled;
Announcements.update(Announcements.findOne()._id, { Announcements.update(Announcements.findOne()._id, {
$set:{ 'enabled': !isActive}, $set: {'enabled': !isActive},
}); });
this.setLoading(false); this.setLoading(false);
if(isActive){ if (isActive) {
$('.admin-announcement').slideUp(); $('.admin-announcement').slideUp();
}else{ } else {
$('.admin-announcement').slideDown(); $('.admin-announcement').slideDown();
} }
}, },

View file

@ -33,7 +33,10 @@ template(name="editProfilePopup")
| {{_ 'username'}} | {{_ 'username'}}
span.error.hide.username-taken span.error.hide.username-taken
| {{_ 'error-username-taken'}} | {{_ 'error-username-taken'}}
input.js-profile-username(type="text" value=username) if allowUserNameChange
input.js-profile-username(type="text" value=username)
else
input.js-profile-username(type="text" value=username readonly)
label label
| {{_ 'initials'}} | {{_ 'initials'}}
input.js-profile-initials(type="text" value=profile.initials) input.js-profile-initials(type="text" value=profile.initials)

View file

@ -24,6 +24,9 @@ Template.editProfilePopup.helpers({
allowEmailChange() { allowEmailChange() {
return AccountSettings.findOne('accounts-allowEmailChange').booleanValue; return AccountSettings.findOne('accounts-allowEmailChange').booleanValue;
}, },
allowUserNameChange() {
return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue;
},
}); });
Template.editProfilePopup.events({ Template.editProfilePopup.events({

View file

@ -434,6 +434,7 @@
"no": "لا", "no": "لا",
"accounts": "الحسابات", "accounts": "الحسابات",
"accounts-allowEmailChange": "السماح بتغيير البريد الإلكتروني", "accounts-allowEmailChange": "السماح بتغيير البريد الإلكتروني",
"accounts-allowUserNameChange": "اسمح بتغيير اسم المستخدم",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Не", "no": "Не",
"accounts": "Профили", "accounts": "Профили",
"accounts-allowEmailChange": "Разреши промяна на имейла", "accounts-allowEmailChange": "Разреши промяна на имейла",
"accounts-allowUserNameChange": "Разрешаване на Промяна на Потребителско име",
"createdAt": "Създаден на", "createdAt": "Създаден на",
"verified": "Потвърден", "verified": "Потвърден",
"active": "Активен", "active": "Активен",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Comptes", "accounts": "Comptes",
"accounts-allowEmailChange": "Permet modificar correu electrònic", "accounts-allowEmailChange": "Permet modificar correu electrònic",
"accounts-allowUserNameChange": "Permet canviar el nom d'usuari",
"createdAt": "Creat ", "createdAt": "Creat ",
"verified": "Verificat", "verified": "Verificat",
"active": "Actiu", "active": "Actiu",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Ne", "no": "Ne",
"accounts": "Účty", "accounts": "Účty",
"accounts-allowEmailChange": "Povolit změnu Emailu", "accounts-allowEmailChange": "Povolit změnu Emailu",
"accounts-allowUserNameChange": "Povolit změnu jména uživatele",
"createdAt": "Vytvořeno v", "createdAt": "Vytvořeno v",
"verified": "Ověřen", "verified": "Ověřen",
"active": "Aktivní", "active": "Aktivní",
@ -443,4 +444,4 @@
"card-end-on": "Končí v", "card-end-on": "Končí v",
"editCardReceivedDatePopup-title": "Změnit datum přijetí", "editCardReceivedDatePopup-title": "Změnit datum přijetí",
"editCardEndDatePopup-title": "Změnit datum konce" "editCardEndDatePopup-title": "Změnit datum konce"
} }

View file

@ -434,6 +434,7 @@
"no": "Nein", "no": "Nein",
"accounts": "Konten", "accounts": "Konten",
"accounts-allowEmailChange": "Ändern der E-Mailadresse zulassen", "accounts-allowEmailChange": "Ändern der E-Mailadresse zulassen",
"accounts-allowUserNameChange": "Erlaube Benutzernamen ändern",
"createdAt": "Erstellt am", "createdAt": "Erstellt am",
"verified": "Geprüft", "verified": "Geprüft",
"active": "Aktiv", "active": "Aktiv",
@ -443,4 +444,4 @@
"card-end-on": "Endet am", "card-end-on": "Endet am",
"editCardReceivedDatePopup-title": "Empfangsdatum ändern", "editCardReceivedDatePopup-title": "Empfangsdatum ändern",
"editCardEndDatePopup-title": "Enddatum ändern" "editCardEndDatePopup-title": "Enddatum ändern"
} }

View file

@ -434,6 +434,7 @@
"no": "Όχι", "no": "Όχι",
"accounts": "Λογαριασμοί", "accounts": "Λογαριασμοί",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Cuentas", "accounts": "Cuentas",
"accounts-allowEmailChange": "Permitir Cambio de Email", "accounts-allowEmailChange": "Permitir Cambio de Email",
"accounts-allowUserNameChange": "Permitir Cambio de Username",
"createdAt": "Creado en", "createdAt": "Creado en",
"verified": "Verificado", "verified": "Verificado",
"active": "Activo", "active": "Activo",
@ -443,4 +444,4 @@
"card-end-on": "Termina en", "card-end-on": "Termina en",
"editCardReceivedDatePopup-title": "Cambiar fecha de recepción", "editCardReceivedDatePopup-title": "Cambiar fecha de recepción",
"editCardEndDatePopup-title": "Cambiar fecha de término" "editCardEndDatePopup-title": "Cambiar fecha de término"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Cuentas", "accounts": "Cuentas",
"accounts-allowEmailChange": "Permitir cambiar el correo electrónico", "accounts-allowEmailChange": "Permitir cambiar el correo electrónico",
"accounts-allowUserNameChange": "Permitir Cambio de Username",
"createdAt": "Creado en", "createdAt": "Creado en",
"verified": "Verificado", "verified": "Verificado",
"active": "Activo", "active": "Activo",
@ -443,4 +444,4 @@
"card-end-on": "Finalizado el", "card-end-on": "Finalizado el",
"editCardReceivedDatePopup-title": "Cambiar la fecha de recepción", "editCardReceivedDatePopup-title": "Cambiar la fecha de recepción",
"editCardEndDatePopup-title": "Cambiar la fecha de finalización" "editCardEndDatePopup-title": "Cambiar la fecha de finalización"
} }

View file

@ -434,6 +434,7 @@
"no": "Ez", "no": "Ez",
"accounts": "Kontuak", "accounts": "Kontuak",
"accounts-allowEmailChange": "Baimendu e-mail aldaketa", "accounts-allowEmailChange": "Baimendu e-mail aldaketa",
"accounts-allowUserNameChange": "Baimendu erabiltzaile-izena aldatzea",
"createdAt": "Noiz sortua", "createdAt": "Noiz sortua",
"verified": "Egiaztatuta", "verified": "Egiaztatuta",
"active": "Gaituta", "active": "Gaituta",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "خیر", "no": "خیر",
"accounts": "حساب‌ها", "accounts": "حساب‌ها",
"accounts-allowEmailChange": "اجازه تغییر رایانامه", "accounts-allowEmailChange": "اجازه تغییر رایانامه",
"accounts-allowUserNameChange": "اجازه تغییر ایمیل",
"createdAt": "ساخته شده در", "createdAt": "ساخته شده در",
"verified": "معتبر", "verified": "معتبر",
"active": "فعال", "active": "فعال",
@ -443,4 +444,4 @@
"card-end-on": "پایان در", "card-end-on": "پایان در",
"editCardReceivedDatePopup-title": "تغییر تاریخ رسید", "editCardReceivedDatePopup-title": "تغییر تاریخ رسید",
"editCardEndDatePopup-title": "تغییر تاریخ پایان" "editCardEndDatePopup-title": "تغییر تاریخ پایان"
} }

View file

@ -434,6 +434,7 @@
"no": "Ei", "no": "Ei",
"accounts": "Tilit", "accounts": "Tilit",
"accounts-allowEmailChange": "Salli sähköpostiosoitteen muuttaminen", "accounts-allowEmailChange": "Salli sähköpostiosoitteen muuttaminen",
"accounts-allowUserNameChange": "Salli käyttäjänimesi muutos",
"createdAt": "Luotu", "createdAt": "Luotu",
"verified": "Varmistettu", "verified": "Varmistettu",
"active": "Aktiivinen", "active": "Aktiivinen",
@ -443,4 +444,4 @@
"card-end-on": "Loppuu", "card-end-on": "Loppuu",
"editCardReceivedDatePopup-title": "Vaihda vastaanottamispäivää", "editCardReceivedDatePopup-title": "Vaihda vastaanottamispäivää",
"editCardEndDatePopup-title": "Vaihda loppumispäivää" "editCardEndDatePopup-title": "Vaihda loppumispäivää"
} }

View file

@ -434,6 +434,7 @@
"no": "Non", "no": "Non",
"accounts": "Comptes", "accounts": "Comptes",
"accounts-allowEmailChange": "Autoriser le changement d'adresse mail", "accounts-allowEmailChange": "Autoriser le changement d'adresse mail",
"accounts-allowUserNameChange": "Autoriser le changement de nom d'utilisateur",
"createdAt": "Créé le", "createdAt": "Créé le",
"verified": "Vérifié", "verified": "Vérifié",
"active": "Actif", "active": "Actif",
@ -443,4 +444,4 @@
"card-end-on": "Se termine le", "card-end-on": "Se termine le",
"editCardReceivedDatePopup-title": "Changer la date de réception", "editCardReceivedDatePopup-title": "Changer la date de réception",
"editCardEndDatePopup-title": "Changer la date de fin" "editCardEndDatePopup-title": "Changer la date de fin"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "לא", "no": "לא",
"accounts": "חשבונות", "accounts": "חשבונות",
"accounts-allowEmailChange": "אפשר שינוי דוא\"ל", "accounts-allowEmailChange": "אפשר שינוי דוא\"ל",
"accounts-allowUserNameChange": "אפשר שינוי שם משתמש",
"createdAt": "נוצר ב", "createdAt": "נוצר ב",
"verified": "עבר אימות", "verified": "עבר אימות",
"active": "פעיל", "active": "פעיל",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Nem", "no": "Nem",
"accounts": "Fiókok", "accounts": "Fiókok",
"accounts-allowEmailChange": "E-mail megváltoztatásának engedélyezése", "accounts-allowEmailChange": "E-mail megváltoztatásának engedélyezése",
"accounts-allowUserNameChange": "A Felhasználónév módosításának engedélyezése",
"createdAt": "Létrehozva", "createdAt": "Létrehozva",
"verified": "Ellenőrizve", "verified": "Ellenőrizve",
"active": "Aktív", "active": "Aktív",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Mba", "no": "Mba",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Ekere na", "createdAt": "Ekere na",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Profili", "accounts": "Profili",
"accounts-allowEmailChange": "Permetti modifica dell'email", "accounts-allowEmailChange": "Permetti modifica dell'email",
"accounts-allowUserNameChange": "Consenti modifica nome utente",
"createdAt": "creato alle", "createdAt": "creato alle",
"verified": "Verificato", "verified": "Verificato",
"active": "Attivo", "active": "Attivo",
@ -443,4 +444,4 @@
"card-end-on": "Termina il", "card-end-on": "Termina il",
"editCardReceivedDatePopup-title": "Cambia data ricezione", "editCardReceivedDatePopup-title": "Cambia data ricezione",
"editCardEndDatePopup-title": "Cambia data finale" "editCardEndDatePopup-title": "Cambia data finale"
} }

View file

@ -434,6 +434,7 @@
"no": "いいえ", "no": "いいえ",
"accounts": "アカウント", "accounts": "アカウント",
"accounts-allowEmailChange": "メールアドレスの変更を許可", "accounts-allowEmailChange": "メールアドレスの変更を許可",
"accounts-allowUserNameChange": "ユーザー名変更を許可する",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Nee", "no": "Nee",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Sta E-mailadres wijzigingen toe", "accounts-allowEmailChange": "Sta E-mailadres wijzigingen toe",
"accounts-allowUserNameChange": "Gebruikersnaam wijzigen toestaan",
"createdAt": "Gemaakt op", "createdAt": "Gemaakt op",
"verified": "Geverifieerd", "verified": "Geverifieerd",
"active": "Actief", "active": "Actief",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Nie", "no": "Nie",
"accounts": "Konto", "accounts": "Konto",
"accounts-allowEmailChange": "Zezwól na zmianę adresu email", "accounts-allowEmailChange": "Zezwól na zmianę adresu email",
"accounts-allowUserNameChange": "Zezwalaj na zmianę użytkownika",
"createdAt": "Stworzono o", "createdAt": "Stworzono o",
"verified": "Zweryfikowane", "verified": "Zweryfikowane",
"active": "Aktywny", "active": "Aktywny",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Não", "no": "Não",
"accounts": "Contas", "accounts": "Contas",
"accounts-allowEmailChange": "Permitir Mudança de Email", "accounts-allowEmailChange": "Permitir Mudança de Email",
"accounts-allowUserNameChange": "Permitir Mudança de Username",
"createdAt": "Criado em", "createdAt": "Criado em",
"verified": "Verificado", "verified": "Verificado",
"active": "Ativo", "active": "Ativo",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Não", "no": "Não",
"accounts": "Contas", "accounts": "Contas",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verificado", "verified": "Verificado",
"active": "Ativo", "active": "Ativo",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Нет", "no": "Нет",
"accounts": "Учетные записи", "accounts": "Учетные записи",
"accounts-allowEmailChange": "Разрешить изменение электронной почты", "accounts-allowEmailChange": "Разрешить изменение электронной почты",
"accounts-allowUserNameChange": "Разрешить изменение имени пользователя",
"createdAt": "Создано на", "createdAt": "Создано на",
"verified": "Проверено", "verified": "Проверено",
"active": "Действующий", "active": "Действующий",
@ -443,4 +444,4 @@
"card-end-on": "Завершится до", "card-end-on": "Завершится до",
"editCardReceivedDatePopup-title": "Изменить дату получения", "editCardReceivedDatePopup-title": "Изменить дату получения",
"editCardEndDatePopup-title": "Изменить дату завершения" "editCardEndDatePopup-title": "Изменить дату завершения"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Nej", "no": "Nej",
"accounts": "Konton", "accounts": "Konton",
"accounts-allowEmailChange": "Tillåt e-poständring", "accounts-allowEmailChange": "Tillåt e-poständring",
"accounts-allowUserNameChange": "Tillåt användarnamnändring",
"createdAt": "Skapad vid", "createdAt": "Skapad vid",
"verified": "Verifierad", "verified": "Verifierad",
"active": "Aktiv", "active": "Aktiv",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Ändra mottagningsdatum", "editCardReceivedDatePopup-title": "Ändra mottagningsdatum",
"editCardEndDatePopup-title": "Ändra slutdatum" "editCardEndDatePopup-title": "Ändra slutdatum"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "Hayır", "no": "Hayır",
"accounts": "Hesaplar", "accounts": "Hesaplar",
"accounts-allowEmailChange": "E-posta Değiştirmeye İzin Ver", "accounts-allowEmailChange": "E-posta Değiştirmeye İzin Ver",
"accounts-allowUserNameChange": "Kullanıcı Adının Değiştirilmesine İzin Ver",
"createdAt": "Oluşturulma tarihi", "createdAt": "Oluşturulma tarihi",
"verified": "Doğrulanmış", "verified": "Doğrulanmış",
"active": "Aktif", "active": "Aktif",
@ -443,4 +444,4 @@
"card-end-on": "Bitiş zamanı", "card-end-on": "Bitiş zamanı",
"editCardReceivedDatePopup-title": "Giriş tarihini değiştir", "editCardReceivedDatePopup-title": "Giriş tarihini değiştir",
"editCardEndDatePopup-title": "Bitiş tarihini değiştir" "editCardEndDatePopup-title": "Bitiş tarihini değiştir"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change", "accounts-allowEmailChange": "Allow Email Change",
"accounts-allowUserNameChange": "Allow Username Change",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

@ -434,6 +434,7 @@
"no": "否", "no": "否",
"accounts": "账号", "accounts": "账号",
"accounts-allowEmailChange": "允许邮箱变更", "accounts-allowEmailChange": "允许邮箱变更",
"accounts-allowUserNameChange": "允许用户名更改",
"createdAt": "创建于", "createdAt": "创建于",
"verified": "已验证", "verified": "已验证",
"active": "活跃", "active": "活跃",
@ -443,4 +444,4 @@
"card-end-on": "终止于", "card-end-on": "终止于",
"editCardReceivedDatePopup-title": "修改接收日期", "editCardReceivedDatePopup-title": "修改接收日期",
"editCardEndDatePopup-title": "修改终止日期" "editCardEndDatePopup-title": "修改终止日期"
} }

View file

@ -434,6 +434,7 @@
"no": "否", "no": "否",
"accounts": "帳號", "accounts": "帳號",
"accounts-allowEmailChange": "准許變更電子信箱", "accounts-allowEmailChange": "准許變更電子信箱",
"accounts-allowUserNameChange": "允许用户名更改",
"createdAt": "Created at", "createdAt": "Created at",
"verified": "Verified", "verified": "Verified",
"active": "Active", "active": "Active",
@ -443,4 +444,4 @@
"card-end-on": "Ends on", "card-end-on": "Ends on",
"editCardReceivedDatePopup-title": "Change received date", "editCardReceivedDatePopup-title": "Change received date",
"editCardEndDatePopup-title": "Change end date" "editCardEndDatePopup-title": "Change end date"
} }

View file

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