X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=bin%2FauthUserAdd.js;fp=bin%2FauthUserAdd.js;h=1c33be8566d158aa2aaa37d1578b7fb94a180d02;hb=3fae9b64c5c70ad52376558caa71db99778541b0;hp=4eaff65b9597995bc1dd5bb2ff08b804c22ac62b;hpb=4f64b8910e1295207a42c757cb81c9b0e9ee3be2;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}`);