LP#1468422 Admin seed data sets new-style passwd
authorBill Erickson <berickxx@gmail.com>
Mon, 23 Nov 2015 18:56:36 +0000 (13:56 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 26 Feb 2016 15:07:41 +0000 (10:07 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/support-scripts/eg_db_config.in

index 2d0bd3b..b59d044 100755 (executable)
@@ -240,7 +240,7 @@ sub set_admin_account {
        # Create a new salt, perform MD5 hashing, set the new password.
        $stmt = $dbh->prepare("SELECT actor.create_salt('main') AS new_salt");
        $stmt->execute;
-       my $new_salt = $stmt->selectrow_hashref->{new_salt};
+       my $new_salt = $dbh->selectrow_hashref($stmt)->{new_salt};
 
     $stmt = $dbh->prepare(
                "SELECT actor.set_passwd(1, 'main', MD5(? || MD5(?)), ?)");