first commit
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 1m4s
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 1m4s
This commit is contained in:
commit
6fc0a01c56
51 changed files with 11319 additions and 0 deletions
10
scripts/password.js
Normal file
10
scripts/password.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { hashPassword } from "../server/auth.js";
|
||||
// Read from stdin so passwords never need to appear in shell arguments.
|
||||
let input = "";
|
||||
for await (const chunk of process.stdin) input += chunk;
|
||||
const password = input.trimEnd();
|
||||
if (password.length < 12)
|
||||
throw new Error(
|
||||
"Use at least 12 characters. Pipe the password through stdin.",
|
||||
);
|
||||
console.log(hashPassword(password));
|
||||
Loading…
Add table
Add a link
Reference in a new issue