aboutsummaryrefslogtreecommitdiffstats
path: root/fripost-passwd
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2011-05-14 13:41:47 +0200
committerGustav Eek <gustav.eek@fripost.org>2011-05-14 13:41:47 +0200
commite14bd8eea4ad519e36a56dc868ed2e9effe1295e (patch)
tree1f4e6441be3602fa596b8564cc893b464580c503 /fripost-passwd
parent16ed1260dd2433d9c25cd550a06c175093416f58 (diff)
parentab34b78c7b247436a3d10d89b5f029fbe093ffe5 (diff)
Merge branch 'master' of https://github.com/skangas/fripost-tools
Diffstat (limited to 'fripost-passwd')
-rwxr-xr-xfripost-passwd4
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();