Add cache decorator for UserModel

This commit is contained in:
Frederic Guillot
2016-12-17 13:39:03 -05:00
parent aafa1de4d5
commit ddeb89e2c6
7 changed files with 73 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ class ReverseProxyAuth extends Base implements PreAuthenticationProviderInterfac
$username = $this->request->getRemoteUser();
if (! empty($username)) {
$userProfile = $this->userModel->getByUsername($username);
$userProfile = $this->userCacheDecorator->getByUsername($username);
$this->userInfo = new ReverseProxyUserProvider($username, $userProfile ?: array());
return true;
}