mirror of
https://github.com/flarum/core.git
synced 2025-02-25 19:53:48 +01:00
Prevent overwriting of user's attributes on register
This commit is contained in:
parent
34f3d93ce5
commit
eef63745e6
@ -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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user