DI::baseUrl()->redirect('register/');
}
-
- // Overwriting the "tar pit" field with the real one
- $arr['email'] = $arr['field1'];
-
if ($additional_account) {
$user = DBA::selectFirst('user', ['email'], ['uid' => local_user()]);
if (!DBA::isResult($user)) {
$arr['password1'] = $arr['confirm'] = $arr['parent_password'];
$arr['repeat'] = $arr['email'] = $user['email'];
+ } else {
+ // Overwriting the "tar pit" field with the real one
+ $arr['email'] = $arr['field1'];
}
if ($arr['email'] != $arr['repeat']) {