mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 21:24:04 +00:00
Make default password an empty string
This commit is contained in:
parent
c4fb7b225e
commit
d449fba037
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class CreatePostgresUserForTenant implements ShouldQueue
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$name = $this->tenant->database()->getUsername() ?? $this->tenant->getTenantKey();
|
$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
|
// Create the user only if it doesn't already exist
|
||||||
if (! count(DB::select("SELECT usename FROM pg_user WHERE usename = '$name';")) > 0) {
|
if (! count(DB::select("SELECT usename FROM pg_user WHERE usename = '$name';")) > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue