mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for invitations
This commit is contained in:
parent
59c54b48e4
commit
3cf2a28b49
@ -37,7 +37,10 @@ trait MakesHash
|
||||
*/
|
||||
public function createDbHash($db) : string
|
||||
{
|
||||
return $this->getDbCode($db).'-'. Str::random(config('ninja.key_length'));
|
||||
if(config('ninja.db.multi_db_enabled'))
|
||||
return $this->getDbCode($db).'-'. Str::random(config('ninja.key_length'));
|
||||
|
||||
return Str::random(config('ninja.key_length'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user