fix: display new users token after creation

pull/251/head
Sylvie 5 months ago
parent bf07999ed8
commit 579f7c1bad
No known key found for this signature in database
GPG Key ID: 75AB0FE5B983A3AF

@ -23,7 +23,7 @@ if (process.argv.length < 4) {
axios.post(`http://localhost:${port}/api/user`, { username, password, admin, meta }, { headers: { 'Authorization': cliKey } })
.then((response) => {
const user = response.data as User;
logger.info('User created', username, user.unid).callback(() => process.exit(0))
logger.info('User created', `${username} (${user.unid})`, `token: ${user.token}`).callback(() => process.exit(0))
})
.catch((err) => logger.error(err).callback(() => process.exit(1)));
}

Loading…
Cancel
Save