From 15b82cac7700f6ee04905d2b09be136bdd4083a5 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Wed, 25 Apr 2018 20:38:33 +0800 Subject: [PATCH] Fix #131: allow user with same email to register by switching to the new UserManager::getByEmail() API --- service/registrationservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/registrationservice.php b/service/registrationservice.php index 8bd29e5..d14018b 100644 --- a/service/registrationservice.php +++ b/service/registrationservice.php @@ -159,7 +159,7 @@ class RegistrationService { return $this->registrationMapper->find($email); } catch (\Exception $e) {} - if ( $this->config->getUsersForUserValue('settings', 'email', $email) ) { + if ( $this->userManager->getByEmail($email) ) { throw new RegistrationException( $this->l10n->t('A user has already taken this email, maybe you already have an account?'), $this->l10n->t('You can log in now.', [$this->urlGenerator->getAbsoluteURL('/')])