Fix #81 Does not set users personal email by using the new
setEMailAddress API
This commit is contained in:
parent
0562ce6624
commit
77b1b5d35d
|
|
@ -277,7 +277,7 @@ class RegistrationService {
|
|||
$userId = $user->getUID();
|
||||
// Set user email
|
||||
try {
|
||||
$this->config->setUserValue($userId, 'settings', 'email', $registration->getEmail());
|
||||
$user->setEMailAddress($registration->getEmail());
|
||||
} catch (\Exception $e) {
|
||||
throw new RegistrationException($this->l10n->t('Unable to set user email: ' . $e->getMessage()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue