X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Freset-password.ts;h=b2e5639fb6f234437dddc501c88601bfc54c7dff;hb=951414fc62a40aad4e7295029f3c57489bee2491;hp=4c45396d4f46a53db0612d179b6f20694d6a7d45;hpb=8cc6120118a9fb75b3165c9f84b2d0068d1ade72;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/reset-password.ts b/scripts/reset-password.ts index 4c45396d4..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 { 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')