mirror of
https://github.com/flarum/core.git
synced 2025-07-20 00:01:17 +02:00
Merge branch '0.1.0-beta.7'
This commit is contained in:
@@ -104,10 +104,8 @@ class RegisterUserHandler
|
|||||||
// from the get-go.
|
// from the get-go.
|
||||||
if (isset($token)) {
|
if (isset($token)) {
|
||||||
foreach ($token->payload as $k => $v) {
|
foreach ($token->payload as $k => $v) {
|
||||||
if (in_array($user->$k, ['', null], true)) {
|
|
||||||
$user->$k = $v;
|
$user->$k = $v;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($token->payload['email'])) {
|
if (isset($token->payload['email'])) {
|
||||||
$user->activate();
|
$user->activate();
|
||||||
|
Reference in New Issue
Block a user