Compare commits
2 commits
78144a4dfc
...
13c7fcb0a2
Author | SHA1 | Date | |
---|---|---|---|
|
13c7fcb0a2 | ||
|
23f28d39c7 |
2 changed files with 1 additions and 7 deletions
|
@ -285,7 +285,6 @@ class Ldap extends Backend {
|
|||
$updated_attrs = [];
|
||||
$deleted_attrs = [];
|
||||
foreach($changes as $attr => $value) {
|
||||
if ($attr == "dn") continue;
|
||||
if (!array_key_exists($attr, $attrs)) {
|
||||
Log::error(
|
||||
"Ldap::update_user(%s): Changes on unknown attribute %s provided",
|
||||
|
|
|
@ -4,7 +4,6 @@ namespace EesyPHP\Auth;
|
|||
|
||||
use EesyPHP\Log;
|
||||
use function EesyPHP\ensure_is_array;
|
||||
use function EesyPHP\vardump;
|
||||
|
||||
class User {
|
||||
|
||||
|
@ -73,7 +72,6 @@ class User {
|
|||
* @return void
|
||||
*/
|
||||
public function __set($key, $value) {
|
||||
Log::trace("%s->__set(%s): new value=%s", $this, $key, vardump($value));
|
||||
switch ($key) {
|
||||
case 'username':
|
||||
$this -> username = strval($value);
|
||||
|
@ -134,10 +132,7 @@ class User {
|
|||
* @return bool
|
||||
*/
|
||||
public function save() {
|
||||
if (!isset($this -> original_user)) {
|
||||
Log::debug("%s->save(): no change to save", $this);
|
||||
return true;
|
||||
}
|
||||
if (!isset($this -> original_user)) return true;
|
||||
return call_user_func(
|
||||
array($this -> backend, 'update_user'),
|
||||
$this -> original_user, $this -> info, true
|
||||
|
|
Loading…
Reference in a new issue