X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Freset-password.ts;h=b2e5639fb6f234437dddc501c88601bfc54c7dff;hb=ac82adaaa002bfde9c20189e913aa5207ed483df;hp=7c1a64a3f61077b30e3799bc686ee3657ce3f6ff;hpb=7d9ba5c08999c6482f0bc5e0c09c6f55b7724090;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/reset-password.ts b/scripts/reset-password.ts index 7c1a64a3f..b2e5639fb 100755 --- a/scripts/reset-password.ts +++ b/scripts/reset-password.ts @@ -1,10 +1,7 @@ -import { registerTSPaths } from '../server/helpers/register-ts-paths' -registerTSPaths() - -import * as program from 'commander' +import { program } from 'commander' +import { isUserPasswordValid } from '../server/helpers/custom-validators/users' import { initDatabaseModels } from '../server/initializers/database' import { UserModel } from '../server/models/user/user' -import { isUserPasswordValid } from '../server/helpers/custom-validators/users' program .option('-u, --user [user]', 'User')