diff --git a/framework/core/src/Core/Command/RegisterUserHandler.php b/framework/core/src/Core/Command/RegisterUserHandler.php index 0629e4681..af5221b40 100644 --- a/framework/core/src/Core/Command/RegisterUserHandler.php +++ b/framework/core/src/Core/Command/RegisterUserHandler.php @@ -115,7 +115,9 @@ class RegisterUserHandler // from the get-go. if (isset($token)) { foreach ($token->payload as $k => $v) { - $user->$k = $v; + if ($user->$k == "" || !isset($user->$k)) { + $user->$k = $v; + } } if (isset($token->payload['email'])) {