From 4a371e4021c4e1e6e1762f93d7505db3c02c2e2e Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Tue, 28 Aug 2018 17:35:52 -0500 Subject: [PATCH] issue: Existing User Registration This addresses an issue where registering as a non-existing user fails to register nor create an account. This is due to a check added in `824e92` that fails if there is no User model found for the address provided. --- account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.php b/account.php index 416cd4761..2f2914a4a 100644 --- a/account.php +++ b/account.php @@ -81,7 +81,7 @@ elseif ($_POST) { elseif (!$user_form->getField('name')->getClean()) $errors['name'] = sprintf(__('%s is a required field'), $user_form->getField('name')->getLocal('label')); // Registration for existing users - elseif ($addr && !($user = User::lookupByEmail($addr))) + elseif ($addr && ($user = User::lookupByEmail($addr)) && !$user->updateInfo($_POST, $errors)) $errors['err'] = __('Unable to register account. See messages below'); // Users created from ClientCreateRequest elseif (isset($_POST['backend']) && !($user = User::fromVars($user_form->getClean()))) -- GitLab