|
|
@ -202,11 +202,14 @@ function doSetup() {
|
|
|
|
.then(() => {
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
|
|
|
|
// Make sure auth.json exists and generate the first key
|
|
|
|
// Make sure auth.json exists and generate the first key
|
|
|
|
let users = {};
|
|
|
|
if (!fs.existsSync(path('auth.json'))) {
|
|
|
|
users[token()] = { username: 'ass', count: 0 };
|
|
|
|
let users = {};
|
|
|
|
fs.writeJsonSync(path('auth.json'), { users }, { spaces: 4 });
|
|
|
|
users[token()] = { username: 'ass', count: 0 };
|
|
|
|
log.debug('File created', 'auth.json')
|
|
|
|
fs.writeJsonSync(path('auth.json'), { users }, { spaces: 4 });
|
|
|
|
.success('!! Important', `Save this token in a secure spot: ${Object.keys(users)[0]}`)
|
|
|
|
log.debug('File created', 'auth.json')
|
|
|
|
|
|
|
|
.success('!! Important', `Save this token in a secure spot: ${Object.keys(users)[0]}`)
|
|
|
|
|
|
|
|
.blank();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let existingData = {}
|
|
|
|
let existingData = {}
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|