Avoid transforming the origins when prompting for auth, fixes #8300

main
Jordi Boggiano 5 years ago
parent a403ee9b0e
commit f0d565bb6d
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -193,7 +193,7 @@ class Git
}
}
$this->io->writeError(' Authentication required (<info>' . parse_url($url, PHP_URL_HOST) . '</info>):');
$this->io->writeError(' Authentication required (<info>' . $match[2] . '</info>):');
$auth = array(
'username' => $this->io->ask(' Username: ', $defaultUsername),
'password' => $this->io->askAndHideAnswer(' Password: '),

@ -745,7 +745,7 @@ class RemoteFilesystem
throw new TransportException("Invalid credentials for '" . $this->fileUrl . "', aborting.", $httpStatus);
}
$this->io->writeError(' Authentication required (<info>'.parse_url($this->fileUrl, PHP_URL_HOST).'</info>):');
$this->io->writeError(' Authentication required (<info>'.$this->originUrl.'</info>):');
$username = $this->io->ask(' Username: ');
$password = $this->io->askAndHideAnswer(' Password: ');
$this->io->setAuthentication($this->originUrl, $username, $password);

Loading…
Cancel
Save