Don't break with older versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d140ee8d77
commit
2b8dc3c4cc
|
|
@ -386,6 +386,7 @@ class RegistrationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set phone number in account data
|
// Set phone number in account data
|
||||||
|
if (method_exists($this->accountManager, 'updateAccount')) {
|
||||||
$account = $this->accountManager->getAccount($user);
|
$account = $this->accountManager->getAccount($user);
|
||||||
$property = $account->getProperty(IAccountManager::PROPERTY_PHONE);
|
$property = $account->getProperty(IAccountManager::PROPERTY_PHONE);
|
||||||
$account->setProperty(
|
$account->setProperty(
|
||||||
|
|
@ -395,6 +396,7 @@ class RegistrationService {
|
||||||
IAccountManager::NOT_VERIFIED
|
IAccountManager::NOT_VERIFIED
|
||||||
);
|
);
|
||||||
$this->accountManager->updateAccount($account);
|
$this->accountManager->updateAccount($account);
|
||||||
|
}
|
||||||
|
|
||||||
// Add user to group
|
// Add user to group
|
||||||
$registeredUserGroup = $this->config->getAppValue($this->appName, 'registered_user_group', 'none');
|
$registeredUserGroup = $this->config->getAppValue($this->appName, 'registered_user_group', 'none');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue