Esempio n. 1
0
 public function sendVerifyEmail($req, $res)
 {
     // look up user
     $user = new User($req->params('id'));
     // check that the user is not verified
     if ($user->isVerified(false)) {
         return $res->setCode(404);
     }
     // send the e-mail
     $this->app['auth']->sendVerificationEmail($user);
     return new View('verifyEmailSent', ['title' => 'E-mail Verification Sent']);
 }