Age Verification (for COPPA Compliance) body<= "; } my ($aaid, $auth) = ($1, $2); my $aa = LJ::is_valid_authaction($aaid, $auth); unless ($aa) { return ""; } # so, it's verified my $u = LJ::load_userid($aa->{userid}); unless ($u) { return ""; } # now do the work LJ::mark_authaction_used($aa); LJ::set_userprop($u, 'parent_email', $aa->{arg1}); $u->underage(0, undef, "parent email verification; email=$aa->{arg1}"); # and now we have to send an email validation notice to the child's email my $aa = LJ::register_authaction($u->{userid}, "validateemail", $u->{email}); my $body = BML::ml('email.newacct2.body', { "email" => $u->{email}, "regurl" => "$LJ::SITEROOT/confirm/$aa->{'aaid'}.$aa->{'authcode'}", "username" => $u->{user}, "sitename" => $LJ::SITENAME, "siteroot" => $LJ::SITEROOT, "admin_email" => $LJ::ADMIN_EMAIL, "bogus_email" => $LJ::BOGUS_EMAIL, }); LJ::send_mail({ 'to' => $u->{email}, 'from' => $LJ::ADMIN_EMAIL, 'fromname' => $LJ::SITENAME, 'charset' => 'utf-8', 'subject' => BML::ml('email.newacct.subject', {'sitename' => $LJ::SITENAME}), 'body' => $body, }); # queue up a message return ""; } _code?> <=body page?>