Skip to content

Commit cb89e6e

Browse files
authored
Merge pull request #8530 from ProcessMaker/bugfix/FOUR-26610
Reset encrypter after setting tenant app key
2 parents b970ecf + 7a29b79 commit cb89e6e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ProcessMaker/Multitenancy/SwitchTenant.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ public function makeCurrent(IsTenant $tenant): void
113113
}
114114
config($config);
115115

116+
// The previous app key was saved in the singleton, so we need to forget it.
117+
$app->forgetInstance('encrypter');
118+
116119
// Extend BroadcastManager to our custom implementation that prefixes the channel names with the tenant id.
117120
$app->extend(BroadcastManager::class, function ($manager, $app) use ($tenant) {
118121
return new TenantAwareBroadcastManager($app, $tenant->id);

0 commit comments

Comments
 (0)