Skip to content

Commit a40dcdd

Browse files
committed
Prevent "wrong type"-issue
The argument is may interpreted as number which causes the "pass" parameter of the user creation to fail. Probably the same applies to the mail address. But mail addresses are by definition not allowed to start by a number (iirc) which makes it less a problem. This is mainly a quick fix. Should be refactored a bit in future. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
1 parent e055f27 commit a40dcdd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/manage_users

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function createUser(argv) {
3333
var pass = readline.question("Password for "+argv["add"]+":", {hideEchoBack: true});
3434
} else {
3535
console.log("Using password from commandline...");
36-
var pass = argv["pass"];
36+
var pass = "" + argv["pass"];
3737
}
3838

3939
// Lets try to create, and check success

0 commit comments

Comments
 (0)