Completed
Push — authenticator-refactor ( 638690...7dc887 )
by Simon
06:10
created
src/Security/BasicAuth.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use SilverStripe\Core\Config\Configurable;
10 10
 use SilverStripe\Dev\SapphireTest;
11 11
 use SilverStripe\Core\Injector\Injector;
12
-
13 12
 use SilverStripe\Security\MemberAuthenticator\Authenticator;
14 13
 
15 14
 /**
Please login to merge, or discard this patch.
tests/php/Security/MemberTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use SilverStripe\ORM\DB;
12 12
 use SilverStripe\ORM\FieldType\DBDatetime;
13 13
 use SilverStripe\Security\Member;
14
-use SilverStripe\Security\MemberAuthenticator;
15 14
 use SilverStripe\Security\Security;
16 15
 use SilverStripe\Security\MemberPassword;
17 16
 use SilverStripe\Security\Group;
Please login to merge, or discard this patch.
src/Forms/DateField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     /**
313 313
      * Assign value posted from form submission
314 314
      *
315
-     * @param mixed $value
315
+     * @param string $value
316 316
      * @param mixed $data
317 317
      * @return $this
318 318
      */
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      *
338 338
      * When $html5=true, assign value from ISO 8601 string.
339 339
      *
340
-     * @param mixed $value
340
+     * @param string $value
341 341
      * @param mixed $data
342 342
      * @return $this
343 343
      */
Please login to merge, or discard this patch.
src/Forms/TimeField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     /**
251 251
      * Assign value posted from form submission
252 252
      *
253
-     * @param mixed $value
253
+     * @param string $value
254 254
      * @param mixed $data
255 255
      * @return $this
256 256
      */
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     /**
268 268
      * Set time assigned from database value
269 269
      *
270
-     * @param mixed $value
270
+     * @param string $value
271 271
      * @param mixed $data
272 272
      * @return $this
273 273
      */
Please login to merge, or discard this patch.
tests/php/Forms/DatetimeFieldTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,7 @@
 block discarded – undo
6 6
 use SilverStripe\Control\Controller;
7 7
 use SilverStripe\Forms\DatetimeField;
8 8
 use SilverStripe\Forms\RequiredFields;
9
-use SilverStripe\Forms\DateField;
10 9
 use SilverStripe\Forms\Tests\DatetimeFieldTest\Model;
11
-use SilverStripe\Forms\TimeField;
12 10
 use SilverStripe\Forms\FieldList;
13 11
 use SilverStripe\Forms\FormAction;
14 12
 use SilverStripe\Forms\Form;
Please login to merge, or discard this patch.
src/Security/CMSSecurity.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use SilverStripe\Control\Controller;
11 11
 use SilverStripe\Core\Injector\Injector;
12 12
 use SilverStripe\ORM\FieldType\DBField;
13
-use SilverStripe\Security\MemberAuthenticator\CMSAuthenticator;
14 13
 use SilverStripe\View\Requirements;
15 14
 
16 15
 /**
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@  discard block
 block discarded – undo
49 49
         return parent::login($request, Authenticator::CMS_LOGIN);
50 50
     }
51 51
 
52
+    /**
53
+     * @param string $action
54
+     */
52 55
     public function Link($action = null)
53 56
     {
54 57
         /** @skipUpgrade */
@@ -79,6 +82,9 @@  discard block
 block discarded – undo
79 82
         return null;
80 83
     }
81 84
 
85
+    /**
86
+     * @param string $title
87
+     */
82 88
     public function getResponseController($title)
83 89
     {
84 90
         // Use $this to prevent use of Page to render underlying templates
Please login to merge, or discard this patch.
src/Security/MemberAuthenticator/Authenticator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -53,6 +53,7 @@
 block discarded – undo
53 53
      * @param $message
54 54
      * @param bool &$success Success flag
55 55
      * @param null|Member $member If the parent method already identified the member, it can be passed in
56
+     * @param null|boolean $success
56 57
      * @return Member Found member, regardless of successful login
57 58
      */
58 59
     protected function authenticateMember($data, &$message, &$success, $member = null)
Please login to merge, or discard this patch.
src/Security/MemberAuthenticator/LoginForm.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SilverStripe\Control\Director;
6 6
 use SilverStripe\Control\RequestHandler;
7 7
 use SilverStripe\Control\Session;
8
-use SilverStripe\Control\Controller;
9 8
 use SilverStripe\Forms\HiddenField;
10 9
 use SilverStripe\Forms\FieldList;
11 10
 use SilverStripe\Forms\FormAction;
Please login to merge, or discard this patch.
tests/php/Security/MemberAuthenticatorTest.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,12 +3,8 @@  discard block
 block discarded – undo
3 3
 namespace SilverStripe\Security\Tests;
4 4
 
5 5
 use SilverStripe\Core\Injector\Injector;
6
-use SilverStripe\ORM\DataObject;
7 6
 use SilverStripe\ORM\FieldType\DBDatetime;
8
-use SilverStripe\ORM\ValidationResult;
9 7
 use SilverStripe\Security\MemberAuthenticator\CMSAuthenticator;
10
-use SilverStripe\Security\PasswordEncryptor;
11
-use SilverStripe\Security\PasswordEncryptor_PHPHash;
12 8
 use SilverStripe\Security\Security;
13 9
 use SilverStripe\Security\Member;
14 10
 use SilverStripe\Security\MemberAuthenticator\Authenticator;
@@ -17,7 +13,6 @@  discard block
 block discarded – undo
17 13
 use SilverStripe\Security\IdentityStore;
18 14
 use SilverStripe\Core\Config\Config;
19 15
 use SilverStripe\Dev\SapphireTest;
20
-use SilverStripe\Forms\FieldList;
21 16
 use SilverStripe\Forms\Form;
22 17
 use SilverStripe\Control\HTTPRequest;
23 18
 
Please login to merge, or discard this patch.