mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Using SecurityToken in ViewableData->getSecurityID() (from r113274)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@114527 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3f8a0ede40
commit
c63b00f92a
@ -699,12 +699,8 @@ class ViewableData extends Object implements IteratorAggregate {
|
||||
* @return string
|
||||
*/
|
||||
public function getSecurityID() {
|
||||
if(!$id = Session::get('SecurityID')) {
|
||||
$id = rand();
|
||||
Session::set('SecurityID', $id);
|
||||
}
|
||||
|
||||
return $id;
|
||||
$token = SecurityToken::inst();
|
||||
return $token->getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user