Permalink
Browse files

Always apply attributes from token when registering

  • Loading branch information...
skywalker512 committed Feb 12, 2018
1 parent c1586e7 commit d8f0f8f46783b73033da130b1a19f4bb3ff9f04b
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/Core/Command/RegisterUserHandler.php
@@ -116,9 +116,7 @@ public function handle(RegisterUser $command)
// from the get-go.
if (isset($token)) {
foreach ($token->payload as $k => $v) {
if (in_array($user->$k, ['', null], true)) {
$user->$k = $v;
}
$user->$k = $v;
}
if (isset($token->payload['email'])) {

0 comments on commit d8f0f8f

Please sign in to comment.