From f529cd7b38facbfd20161cce3d6375e6d6a177c6 Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Sun, 3 Mar 2019 23:55:34 +0100 Subject: [PATCH] Make password from hash-password command required. --- scripts/authelia-scripts-hash-password | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/authelia-scripts-hash-password b/scripts/authelia-scripts-hash-password index e8e25d5c..a8ac7a59 100755 --- a/scripts/authelia-scripts-hash-password +++ b/scripts/authelia-scripts-hash-password @@ -25,4 +25,8 @@ program }) .parse(process.argv); +if (!password) { + program.help(); +} + console.log(ssha512(password, program.salt || 16, program.rounds || 500000));