Update list of restricted usernames to avoid collision in api
parent
fb6538a757
commit
c745572a7e
|
@ -1,6 +1,11 @@
|
||||||
import {parseAsYaml as parse} from "parse-yaml";
|
import {parseAsYaml as parse} from "parse-yaml";
|
||||||
import {readFileSync as read} from "fs";
|
import {readFileSync as read} from "fs";
|
||||||
|
try {
|
||||||
var localconfig: Object = parse(read('config/config.yml'));
|
var localconfig: Object = parse(read('config/config.yml'));
|
||||||
|
} catch (e) {
|
||||||
|
console.log('No config file found. Exiting.');
|
||||||
|
process.exit();
|
||||||
|
}
|
||||||
const config: Object = {
|
const config: Object = {
|
||||||
crypto: Object.assign({
|
crypto: Object.assign({
|
||||||
saltRounds: 12
|
saltRounds: 12
|
||||||
|
@ -10,7 +15,7 @@ const config: Object = {
|
||||||
domain: '',
|
domain: '',
|
||||||
registration: false,
|
registration: false,
|
||||||
email: null,
|
email: null,
|
||||||
restrictedNames: [ 'live' ],
|
restrictedNames: [ 'live', 'user', 'users', 'register', 'login' ],
|
||||||
rootredirect: '/users/live',
|
rootredirect: '/users/live',
|
||||||
version: process.env.npm_package_version,
|
version: process.env.npm_package_version,
|
||||||
}, localconfig['satyr']),
|
}, localconfig['satyr']),
|
||||||
|
|
Reference in New Issue