1
0
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:
David Bomba 2021-10-14 18:03:03 +11:00
parent 59c54b48e4
commit 3cf2a28b49

View File

@ -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'));
}
/**