mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 22:04:02 -05:00
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>
This commit is contained in:
parent
e055f270b4
commit
a40dcdd222
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ async function createUser(argv) {
|
||||||
var pass = readline.question("Password for "+argv["add"]+":", {hideEchoBack: true});
|
var pass = readline.question("Password for "+argv["add"]+":", {hideEchoBack: true});
|
||||||
} else {
|
} else {
|
||||||
console.log("Using password from commandline...");
|
console.log("Using password from commandline...");
|
||||||
var pass = argv["pass"];
|
var pass = "" + argv["pass"];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lets try to create, and check success
|
// Lets try to create, and check success
|
||||||
|
|
Loading…
Reference in a new issue