function resendVerifyEmail(Request $request, Application $app)
 {
     $repo = new UserAccountVerifyEmailRepository();
     $date = $repo->getLastSentForUserAccount($app['currentUser']);
     if ($date && $date->getTimestamp() > \TimeSource::time() - $app['config']->userAccountVerificationSecondsBetweenAllowedSends) {
         $app['flashmessages']->addMessage("Sorry, but an email was sent too recently. Please try again later.");
     } else {
         $verifyEmail = $repo->create($app['currentUser']);
         $verifyEmail->sendEmail($app, $app['currentUser']);
         $app['flashmessages']->addMessage("Verification email resent.");
     }
     return $app->redirect("/me/");
 }