mailer, some fixes, #16

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@142 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
pzinovkin
2010-04-27 17:28:43 +00:00
parent c214b75d60
commit 4cc7907728
5 changed files with 47 additions and 81 deletions

View File

@ -72,6 +72,9 @@ class Captcha
public function checkCode($token, $code)
{
if (Session::get('_ctoken') == $token && Session::get('_ccode') == strtoupper($code)){
// Housekeeping
Session::del('_ccode');
Session::del('_ctoken');
return true;
}
return false;