Guest User

Untitled

a guest
Apr 9th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. sub get_proxy_credentials {
  2. my $self = shift;
  3. my ($user, $password);
  4. if ( defined $CPAN::Config->{proxy_user} &&
  5. defined $CPAN::Config->{proxy_pass}) {
  6. $user = $CPAN::Config->{proxy_user};
  7. $password = $CPAN::Config->{proxy_pass};
  8. return ($user, $password);
  9. }
  10. my $username_prompt = "\nProxy authentication needed!
  11. (Note: to permanently configure username and password run
  12. o conf proxy_user your_username
  13. o conf proxy_pass your_password
  14. )\nUsername:";
  15. ($user, $password) =
  16. _get_username_and_password_from_user($username_prompt);
  17. return ($user,$password);
  18. }
Add Comment
Please, Sign In to add comment