diff options
author | Sheogorath | 2018-01-29 22:37:53 +0100 |
---|---|---|
committer | Sheogorath | 2018-01-29 22:41:12 +0100 |
commit | a40dcdd22223ce541a5f7a956bcc23509281b7ee (patch) | |
tree | 1f6626a038dfbaf29e348d0d3ba269a629bd85b3 /bin/manage_users | |
parent | e055f270b42cc4f568f92b6008ac9931864b50ef (diff) |
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>
Diffstat (limited to 'bin/manage_users')
-rwxr-xr-x | bin/manage_users | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/manage_users b/bin/manage_users index 6bf8bc26..74ac1812 100755 --- a/bin/manage_users +++ b/bin/manage_users @@ -33,7 +33,7 @@ async function createUser(argv) { var pass = readline.question("Password for "+argv["add"]+":", {hideEchoBack: true}); } else { console.log("Using password from commandline..."); - var pass = argv["pass"]; + var pass = "" + argv["pass"]; } // Lets try to create, and check success |