X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-auth.ts;h=c853469c27f286f52a8cf9cde9562c1491904761;hb=cffef25313bdf7a6c435f56ac6715fdd91acf7b3;hp=f8ac8b2ab0d4978bc9bda34b7a48ec459eda2e2a;hpb=3318147300b4f998adf728eb0a5a14a4c1829c51;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube-auth.ts b/server/tools/peertube-auth.ts index f8ac8b2ab..c853469c2 100644 --- a/server/tools/peertube-auth.ts +++ b/server/tools/peertube-auth.ts @@ -1,7 +1,7 @@ import CliTable3 from 'cli-table3' import { OptionValues, program } from 'commander' import { isUserUsernameValid } from '../helpers/custom-validators/users' -import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './cli' +import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './shared' import prompt = require('prompt') @@ -47,7 +47,7 @@ function stripExtraneousFromPeerTubeUrl (url: string) { ? url.indexOf('/', 8) : url.length - return url.substr(0, urlLength) + return url.substring(0, urlLength) } program @@ -89,7 +89,7 @@ program // Check credentials try { // Strip out everything after the domain:port. - // @see https://github.com/Chocobozzz/PeerTube/issues/3520 + // See https://github.com/Chocobozzz/PeerTube/issues/3520 result.url = stripExtraneousFromPeerTubeUrl(result.url) const server = buildServer(result.url)