Page MenuHomePhabricator

D549.diff
No OneTemporary

D549.diff

diff --git a/io/XSSToken.php b/io/XSSToken.php
--- a/io/XSSToken.php
+++ b/io/XSSToken.php
@@ -1,10 +1,9 @@
<?php namespace spitfire\io;
-use spitfire\io\renderers\RenderableFieldHidden;
use spitfire\io\session\Session;
use spitfire\exceptions\PublicException;
-class XSSToken implements RenderableFieldHidden
+class XSSToken
{
private $timeout;
@@ -13,14 +12,6 @@
$this->timeout = $timeout;
}
- public function getEnforcedFieldRenderer() {
- return null;
- }
-
- public function getPostId() {
- return '_XSS_';
- }
-
public function getValue() {
$session = Session::getInstance();
@@ -60,17 +51,9 @@
return $hash === $check;
}
-
- public function getVisibility() {
- return renderers\RenderableField::VISIBILITY_FORM;
- }
-
- public function getCaption() {
- return null;
- }
public function __toString() {
return $this->getValue();
}
}
\ No newline at end of file

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 14, 8:54 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5894
Default Alt Text
D549.diff (923 B)

Event Timeline