X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Freset-password.ts;h=b2e5639fb6f234437dddc501c88601bfc54c7dff;hb=2a95b88477a547c319108c0bab8692624df6804c;hp=7c1a64a3f61077b30e3799bc686ee3657ce3f6ff;hpb=1e4d2cb5aef11898585fae4053da4ebd0a69b480;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')