domain_create

This commit is contained in:
masnn committed 2020-06-04 23:14:59 +08:00
1 parent faec4744d7
commit 63d55cedf4
7 files changed
+91 -13

No files matched your search

+4 -2
View File
@@ -15,9 +15,11 @@ const coll = db.collection('domain');
* @param {string} domainId
* @param {number} owner
*/
function add(domainId, owner) {
function add(domainId, owner, name) {
const tasks = [
coll.insertOne({ _id: domainId, owner, bulletin: '' }),
coll.insertOne({
_id: domainId, owner, name, bulletin: '',
}),
];
for (const id in builtin.BUILTIN_ROLES) {
tasks.push(
+1
View File
@@ -45,6 +45,7 @@ for (const setting in SETTINGS) SETTINGS_BY_KEY[setting.key] = setting;
const SYSTEM_SETTINGS = [
Setting('setting_basic', 'user.register', null, false, 'checkbox', 'Allow register'),
Setting('setting_basic', 'user.create_domain', null, true, 'checkbox', 'Allow domain creation'),
Setting('setting_smtp', 'smtp.user', null, null, 'text', 'SMTP Username'),
Setting('setting_smtp', 'smtp.pass', null, null, 'password', 'SMTP Password'),
Setting('setting_smtp', 'smtp.host', null, null, 'text', 'SMTP Server Host'),