diff options
author | Stefan Kangas <skangas@skangas.se> | 2011-04-08 15:56:30 +0200 |
---|---|---|
committer | Stefan Kangas <skangas@skangas.se> | 2011-04-08 15:56:30 +0200 |
commit | ab34b78c7b247436a3d10d89b5f029fbe093ffe5 (patch) | |
tree | 36557fbcb5ee607f834d8c8d7eafb669e14a5969 /fripost-passwd | |
parent | 205da09d85274f993fe7343b6517f96c2f2b78dc (diff) |
fripost-passwd does not require username with host on command line
Diffstat (limited to 'fripost-passwd')
-rwxr-xr-x | fripost-passwd | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |