fix: [behavior:authKeycloak] Typo when enrolling new user
parent
f068d18d49
commit
e7b274dbf0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue