mirror of https://github.com/tycrek/ass.git
fix: display new users token after creation
This commit is contained in:
parent
bf07999ed8
commit
579f7c1bad
|
@ -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…
Reference in New Issue