From ab34b78c7b247436a3d10d89b5f029fbe093ffe5 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Fri, 8 Apr 2011 15:56:30 +0200 Subject: fripost-passwd does not require username with host on command line --- fripost-passwd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fripost-passwd') diff --git a/fripost-passwd b/fripost-passwd index c01ca4b..bb67e44 100755 --- a/fripost-passwd +++ b/fripost-passwd @@ -23,13 +23,13 @@ use YAML::Syck; our $conf = LoadFile('default.yml'); GetOptions( - 'dbi_dsn' => \$conf->{dbi_dsn}, + 'dbi_dsn' => \$conf->{dbi_dsn}, 'admuser=s' => \$conf->{admuser}, 'admpass=s' => \$conf->{admpass}, 'pretend' => \$conf->{pretend}, ) or die "Unable to get command line options."; -my $username = $ARGV[0]; +my $username = fix_username($ARGV[0]); $username //= prompt_email("New username: ", 'is_user'); my $password = prompt_password(); -- cgit v1.2.3