Fix #81 Does not set users personal email by using the new

setEMailAddress API
This commit is contained in:
Pellaeon Lin 2017-09-17 15:01:53 +08:00
parent 0562ce6624
commit 77b1b5d35d
1 changed files with 1 additions and 1 deletions

View File

@ -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()));
}