fix: [behavior:authKeycloak] Typo when enrolling new user

pull/72/head
Sami Mokaddem 2021-10-04 11:02:10 +02:00
parent f068d18d49
commit e7b274dbf0
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ use Cake\ORM\Behavior;
use Cake\ORM\Entity; use Cake\ORM\Entity;
use Cake\ORM\Query; use Cake\ORM\Query;
use Cake\Utility\Text; use Cake\Utility\Text;
use Cake\Utility\Security;
use \Cake\Http\Session; use \Cake\Http\Session;
use Cake\Core\Configure; use Cake\Core\Configure;
use Cake\Http\Client; use Cake\Http\Client;
@ -70,7 +71,7 @@ class AuthKeycloakBehavior extends Behavior
if (empty($existingUser)) { if (empty($existingUser)) {
$user['user']['password'] = Security::randomString(16); $user['user']['password'] = Security::randomString(16);
$existingUser = $this->_table->newEntity($user['user']); $existingUser = $this->_table->newEntity($user['user']);
if (!$this->save($existingUser)) { if (!$this->_table->save($existingUser)) {
return false; return false;
} }
} else { } else {