Skip to content

Commit

Permalink
Remove CSRF token generation from Security Component.
Browse files Browse the repository at this point in the history
This is now handled by the CSRF Component and doesn't need to be
duplicated here.
  • Loading branch information
markstory committed Nov 8, 2013
1 parent a6ef60f commit 70bbb02
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 80 deletions.
3 changes: 0 additions & 3 deletions Cake/Controller/Component/SecurityComponent.php
Expand Up @@ -371,9 +371,7 @@ public function generateToken(Request $request) {
}
return false;
}
$authKey = Security::generateAuthKey();
$token = array(
'key' => $authKey,
'allowedControllers' => $this->allowedControllers,
'allowedActions' => $this->allowedActions,
'unlockedFields' => $this->unlockedFields,
Expand All @@ -385,7 +383,6 @@ public function generateToken(Request $request) {
}
$this->Session->write('_Token', $token);
$request->params['_Token'] = array(
'key' => $token['key'],
'unlockedFields' => $token['unlockedFields']
);
return true;
Expand Down

0 comments on commit 70bbb02

Please sign in to comment.