1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

Make default password an empty string

This commit is contained in:
lukinovec 2023-06-27 10:40:54 +02:00
parent c4fb7b225e
commit d449fba037

View file

@ -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) {