@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Firesphere\PartialUserforms\Extensions; |
4 | 4 | |
5 | -use Firesphere\PartialUserforms\Forms\PasswordForm; |
|
6 | 5 | use Firesphere\PartialUserforms\Models\PartialFormSubmission; |
7 | 6 | use SilverStripe\Core\Extension; |
8 | 7 | use SilverStripe\UserForms\Control\UserDefinedFormController; |
@@ -241,7 +241,4 @@ |
||
241 | 241 | 'Link' => $partial->getPartialLink() |
242 | 242 | ])->renderWith(['PartialUserForm', 'Page']); |
243 | 243 | } else { |
244 | - return $this->httpError(404); |
|
245 | - } |
|
246 | - } |
|
247 | -} |
|
244 | + return $this->httpError |
|
248 | 245 | \ No newline at end of file |
@@ -241,7 +241,4 @@ |
||
241 | 241 | 'Link' => $partial->getPartialLink() |
242 | 242 | ])->renderWith(['PartialUserForm', 'Page']); |
243 | 243 | } else { |
244 | - return $this->httpError(404); |
|
245 | - } |
|
246 | - } |
|
247 | -} |
|
244 | + return $this->httpError |
|
248 | 245 | \ No newline at end of file |
@@ -236,6 +236,4 @@ |
||
236 | 236 | */ |
237 | 237 | public function generateKey($token) |
238 | 238 | { |
239 | - return hash_pbkdf2('sha256', $token, $this->TokenSalt, 1000, 16); |
|
240 | - } |
|
241 | -} |
|
239 | + return hash_pbkdf2('sha256', $token, $this->TokenSalt |
|
242 | 240 | \ No newline at end of file |
@@ -236,6 +236,4 @@ |
||
236 | 236 | */ |
237 | 237 | public function generateKey($token) |
238 | 238 | { |
239 | - return hash_pbkdf2('sha256', $token, $this->TokenSalt, 1000, 16); |
|
240 | - } |
|
241 | -} |
|
239 | + return hash_pbkdf2('sha256', $token, $this->TokenSalt |
|
242 | 240 | \ No newline at end of file |