From 77b1b5d35d360c8c77a8139010f9dcfaaa4756b1 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Sun, 17 Sep 2017 15:01:53 +0800 Subject: [PATCH] Fix #81 Does not set users personal email by using the new setEMailAddress API --- service/registrationservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/registrationservice.php b/service/registrationservice.php index f9337c7..bf4c67f 100644 --- a/service/registrationservice.php +++ b/service/registrationservice.php @@ -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())); }