bugfix: changed forgotten userName, to getUsername

Signed-off-by: Marc Hefter <marchefter@march42.net>
Signed-off-by: Marc Hefter <marchefter@gmail.com>
This commit is contained in:
Marc Hefter 2022-05-20 14:31:55 +02:00 committed by Marc Hefter
parent eee0275dc5
commit c7623c7869
No known key found for this signature in database
GPG key ID: AC45BA6A849F8610

View file

@ -633,10 +633,10 @@ class User {
// setVerified(IAccountManager::VERIFIED);
}
} catch (PropertyDoesNotExistException $e) {
$this->logger->error('property does not exist: '.$profileProperty.' for user '.$userName.'', ['app' => 'user_ldap']);
$this->logger->error('property does not exist: '.$profileProperty.' for user '.$this->getUsername().'', ['app' => 'user_ldap']);
return;
}
$this->logger->debug('property updated: '.$profileProperty.'='.$propertyValue.' for user '.$userName.'', ['app' => 'user_ldap']);
$this->logger->debug('property updated: '.$profileProperty.'='.$propertyValue.' for user '.$this->getUsername().'', ['app' => 'user_ldap']);
$this->config->setUserValue($this->getUsername(), 'user_ldap', $property, $value);
return $value;
} else {