Completed
Pull Request — master (#16)
by Simon
01:16
created
src/extensions/UserDefinedFormControllerExtension.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/controllers/PartialUserFormController.php 2 patches
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -241,7 +241,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -241,7 +241,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/models/PartialFormSubmission.php 2 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -236,6 +236,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -236,6 +236,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.