diff options
Diffstat (limited to 'scripts/reset-password.ts')
-rwxr-xr-x | scripts/reset-password.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/reset-password.ts b/scripts/reset-password.ts index 09f27bfa4..5ab7d01e5 100755 --- a/scripts/reset-password.ts +++ b/scripts/reset-password.ts | |||
@@ -6,14 +6,14 @@ program | |||
6 | .option('-u, --user [user]', 'User') | 6 | .option('-u, --user [user]', 'User') |
7 | .parse(process.argv) | 7 | .parse(process.argv) |
8 | 8 | ||
9 | if (program.user === undefined) { | 9 | if (program['user'] === undefined) { |
10 | console.error('All parameters are mandatory.') | 10 | console.error('All parameters are mandatory.') |
11 | process.exit(-1) | 11 | process.exit(-1) |
12 | } | 12 | } |
13 | 13 | ||
14 | db.init(true) | 14 | db.init(true) |
15 | .then(() => { | 15 | .then(() => { |
16 | return db.User.loadByUsername(program.user) | 16 | return db.User.loadByUsername(program['user']) |
17 | }) | 17 | }) |
18 | .then(user => { | 18 | .then(user => { |
19 | if (!user) { | 19 | if (!user) { |