eval {
my $patron = Koha::Patron->new($patron_data)->store;
$patron->update_password($patron->userid, $firstpassword);
$patron->set_password({ password => $firstpassword });
};
#Error handling checking if the patron was created successfully
-