projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update devDependencies
[websub-hub]
/
bin
/
authUserAdd.js
diff --git
a/bin/authUserAdd.js
b/bin/authUserAdd.js
index 4eaff65b9597995bc1dd5bb2ff08b804c22ac62b..1c33be8566d158aa2aaa37d1578b7fb94a180d02 100644
(file)
--- 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}`);