From d449fba03798ef5b8f9f1d9b44411182866e13e2 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 27 Jun 2023 10:40:54 +0200 Subject: [PATCH] Make default password an empty string --- src/Jobs/CreatePostgresUserForTenant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jobs/CreatePostgresUserForTenant.php b/src/Jobs/CreatePostgresUserForTenant.php index f6b22345..29102a43 100644 --- a/src/Jobs/CreatePostgresUserForTenant.php +++ b/src/Jobs/CreatePostgresUserForTenant.php @@ -35,7 +35,7 @@ class CreatePostgresUserForTenant implements ShouldQueue public function handle() { $name = $this->tenant->database()->getUsername() ?? $this->tenant->getTenantKey(); - $password = $this->tenant->database()->getPassword() ?? 'password'; + $password = $this->tenant->database()->getPassword() ?? ''; // Create the user only if it doesn't already exist if (! count(DB::select("SELECT usename FROM pg_user WHERE usename = '$name';")) > 0) {