Merge pull request #1033 from dav-is/patch-2

Prevent Overwriting of User's Attributes on Register (#897)
This commit is contained in:
Franz Liedke 2017-02-03 18:51:11 +01:00 committed by GitHub
commit d5ccc7392a

View File

@ -116,7 +116,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'])) {