public function show() { $comment = new $this->_commentClass; if (! UserSession::get()) { $comment->anonAuthor = new AnonProfile; } $this->newComment = $comment; $this->newCommentCaptcha = MollomCaptcha::create(); $this->spamOptions = self::spamOptions(); $this->commentRequests = $this->_commentRequests; }
public function reset() { $this->resetPassword = new ResetPassword; $this->resetCaptcha = MollomCaptcha::create(); $this->render('resetpassword'); }
public function testCreateOutdatedServerList() { CoOrg::config()->set('mollom/serverlist', array('outdated')); $captcha = MollomCaptcha::create(); $this->assertEquals('image', $captcha->type); $this->assertEquals(array('retrieved-list'), CoOrg::config()->get('mollom/serverlist')); }
public function show() { parent::show(); if (!UserSession::get()) $this->commentCaptcha = MollomCaptcha::create(); }