Removed erroneous comments referring to old common_notice_form() func

This commit is contained in:
Zach Copley 2009-02-04 11:55:22 -08:00
parent b43bdda312
commit df41b1307f
2 changed files with 1 additions and 2 deletions

View File

@ -96,7 +96,6 @@ class LoginAction extends Action
{ {
// XXX: login throttle // XXX: login throttle
// CSRF protection - token set in common_notice_form()
$token = $this->trimmed('token'); $token = $this->trimmed('token');
if (!$token || $token != common_session_token()) { if (!$token || $token != common_session_token()) {
$this->clientError(_('There was a problem with your session token. '. $this->clientError(_('There was a problem with your session token. '.

View File

@ -90,7 +90,7 @@ class NewnoticeAction extends Action
$this->clientError(_('Not logged in.')); $this->clientError(_('Not logged in.'));
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') { } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// CSRF protection - token set in common_notice_form() // CSRF protection
$token = $this->trimmed('token'); $token = $this->trimmed('token');
if (!$token || $token != common_session_token()) { if (!$token || $token != common_session_token()) {
$this->clientError(_('There was a problem with your session token. '. $this->clientError(_('There was a problem with your session token. '.