From e7b274dbf06101508250e43319c70b5e09ff054c Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 4 Oct 2021 11:02:10 +0200 Subject: [PATCH] fix: [behavior:authKeycloak] Typo when enrolling new user --- src/Model/Behavior/AuthKeycloakBehavior.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Behavior/AuthKeycloakBehavior.php b/src/Model/Behavior/AuthKeycloakBehavior.php index 519794c..d42a8c9 100644 --- a/src/Model/Behavior/AuthKeycloakBehavior.php +++ b/src/Model/Behavior/AuthKeycloakBehavior.php @@ -8,6 +8,7 @@ use Cake\ORM\Behavior; use Cake\ORM\Entity; use Cake\ORM\Query; use Cake\Utility\Text; +use Cake\Utility\Security; use \Cake\Http\Session; use Cake\Core\Configure; use Cake\Http\Client; @@ -70,7 +71,7 @@ class AuthKeycloakBehavior extends Behavior if (empty($existingUser)) { $user['user']['password'] = Security::randomString(16); $existingUser = $this->_table->newEntity($user['user']); - if (!$this->save($existingUser)) { + if (!$this->_table->save($existingUser)) { return false; } } else {