Exemplo n.º 1
0
 /**
  * Confirm the user account via the confirmation link.
  */
 public function getConfirm()
 {
     if ($cyphserstring = Request::get('u', 'encrypted')) {
         $user = UserModel::loadByEncryptedUserReference($cyphserstring);
         $user->setConfirmed();
         Messenger::message('Your account ' . $user->email . ' has been confirmed.');
         $this->loginRedirect();
     } else {
         Messenger::error('Invalid request');
     }
 }