It was broken due to the usersOnly permissions as the maximum
avatar size in bytes is zero for guests.
$user = $result['returnValues'];
$userEditor = new UserEditor($user);
+ // update session
+ WCF::getSession()->changeUser($user);
+
// set avatar if provided
if (!empty($avatarURL)) {
$userAvatarAction = new UserAvatarAction(array(), 'fetchRemoteAvatar', array(
$userAvatarAction->executeAction();
}
- // update session
- WCF::getSession()->changeUser($user);
-
// activation management
if (REGISTER_ACTIVATION_METHOD == 0) {
$this->message = 'wcf.user.register.success';