Skip to content

Commit

Permalink
More updates for disabledFields -> unlockedFields.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 15, 2011
1 parent c136349 commit 878b854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Controller/Component/SecurityComponent.php
Expand Up @@ -500,7 +500,7 @@ protected function _generateToken($controller) {
'key' => $authKey,
'allowedControllers' => $this->allowedControllers,
'allowedActions' => $this->allowedActions,
'disabledFields' => $this->disabledFields,
'unlockedFields' => array_merge($this->disabledFields, $this->unlockedFields),
'csrfTokens' => array()
);

Expand All @@ -521,7 +521,7 @@ protected function _generateToken($controller) {
$this->Session->write('_Token', $token);
$controller->request->params['_Token'] = array(
'key' => $token['key'],
'disabledFields' => $token['disabledFields']
'unlockedFields' => $token['unlockedFields']
);
return true;
}
Expand Down

0 comments on commit 878b854

Please sign in to comment.