Example #1
0
 private function process()
 {
     // Check that the token is valid, prevents exploits
     if (!parent::valid_token($this->settings['token'])) {
         $this->error = '<div class="alert alert-error">' . _('Invalid signup attempt') . '</div>';
     }
     /* Check the captcha response. */
     $this->doCaptcha(false);
     // See if all the values are correct
     $this->validate();
     // Sign um up!
     $this->register();
 }