Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (13 sloc) 511 Bytes
<?php
require_once(__DIR__ . '/global.php');
require_once(__DIR__ . '/classes/User.php');
UserConfig::$IGNORE_REQUIRED_EMAIL_VERIFICATION = true;
$user = User::require_login();
$email = $user->getEmail();
if (!is_null($email)) {
$user->sendEmailVerificationCode();
}
$template_info = StartupAPI::getTemplateInfo();
$template_info['email'] = $email;
$template_info['PAGE']['SECTION'] = 'profile_info';
StartupAPI::$template->display('@startupapi/send_email_verification_code.html.twig', $template_info);