diff --git a/plugins/arOidcPlugin/lib/oidcUser.class.php b/plugins/arOidcPlugin/lib/oidcUser.class.php index 52e8fc3218..79bd598f6f 100644 --- a/plugins/arOidcPlugin/lib/oidcUser.class.php +++ b/plugins/arOidcPlugin/lib/oidcUser.class.php @@ -183,6 +183,11 @@ public function authenticate($username = null, $password = null): bool } $authenticated = true; + + // Clear template cache. + $cacheClear = new sfCacheClearTask(sfContext::getInstance()->getEventDispatcher(), new sfFormatter()); + $cacheClear->run([], ['type' => 'template']); + // Refresh user so new groups and credentials are immediately available on signIn(). $this->signIn(QubitUser::getById($user->id)); }