From 742d8b36108826d4114e7e753652a553652f4614 Mon Sep 17 00:00:00 2001 From: Hubert depesz Lubaczewski Date: Sun, 24 Jun 2012 14:54:27 +0200 Subject: [PATCH] Password is not obligatory We can connect using password stored in ~/.pgpass, or with password from PGPASSWORD, or PostgreSQL can be configured to use "trust" or "peer/ident" authentication schemata. In all these cases password configuration in config file is not necessary. --- db.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/db.pm b/db.pm index 2013cde..bdae21b 100644 --- a/db.pm +++ b/db.pm @@ -87,9 +87,6 @@ sub verify_config { if (!defined($self->{config}->{'username'})) { return 0; } - if (!defined($self->{config}->{'password'})) { - return 0; - } if (!defined($self->{config}->{'schema'})) { return 0; } -- 2.39.5