Permalink
Browse files

MINOR Using SecurityToken in ViewableData->getSecurityID() (from r113…

…274)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114527 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 3f8a0ed commit c63b00f92a3db9cd02ee77ad89d77dde93e17aff @sminnee sminnee committed Dec 5, 2010
Showing with 2 additions and 6 deletions.
  1. +2 −6 core/ViewableData.php
View
@@ -699,12 +699,8 @@ public function CurrentMember() {
* @return string
*/
public function getSecurityID() {
- if(!$id = Session::get('SecurityID')) {
- $id = rand();
- Session::set('SecurityID', $id);
- }
-
- return $id;
+ $token = SecurityToken::inst();
+ return $token->getValue();
}
/**

0 comments on commit c63b00f

Please sign in to comment.