getRequest(); $user = $request->getUser(); $email = $user->loadPrimaryEmail(); if ($email->getIsVerified()) { return id(new AphrontRedirectResponse())->setURI('/'); } $email_address = $email->getAddress(); $sent = null; if ($request->isFormPost()) { $email->sendVerificationEmail($user); $sent = new AphrontErrorView(); $sent->setSeverity(AphrontErrorView::SEVERITY_NOTICE); $sent->setTitle('Email Sent'); $sent->appendChild( '
Another verification email was sent to '. phutil_escape_html($email_address).'.
'); } $error_view = new AphrontRequestFailureView(); $error_view->setHeader('Check Your Email'); $error_view->appendChild( 'You must verify your email address to login. You should have a new '. 'email message from Phabricator with verification instructions in your '. 'inbox ('.phutil_escape_html($email_address).').
'); $error_view->appendChild( 'If you did not receive an email, you can click the button below '. 'to try sending another one.
'); $error_view->appendChild( '