X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=bin%2FauthUserAdd.js;h=1c33be8566d158aa2aaa37d1578b7fb94a180d02;hb=8845c9b8d6031256cfaea749845026d5f6166ea6;hp=4eaff65b9597995bc1dd5bb2ff08b804c22ac62b;hpb=9696c012e6b9a6c58904baa397ca0ebf78112316;p=websub-hub diff --git a/bin/authUserAdd.js b/bin/authUserAdd.js index 4eaff65..1c33be8 100644 --- a/bin/authUserAdd.js +++ b/bin/authUserAdd.js @@ -44,6 +44,7 @@ async function readPassword(prompt) { } (async () => { + await db.initialize(); const password = await readPassword('password: '); const credential = await argon2.hash(password, { type: argon2.argon2id }); console.log(`\t${identifier}:${credential}`);