/** * Generates a new Captcha challenge. * * @return string The challenge answer */ public function generate_challenge() { // Complexity setting is used as character count return Text::random('distinct', max(1, $this->complexity)); }
public function value() { return Text::to_slug($this->_model->get($this->_field)); }