@@ 84-91 (lines=8) @@ | ||
81 | 'passwordAttemptThrottle' => $this->config->get( 'PasswordAttemptThrottle' ), |
|
82 | ]; |
|
83 | ||
84 | if ( !empty( $this->throttleSettings['accountCreationThrottle'] ) ) { |
|
85 | $this->accountCreationThrottle = new Throttler( |
|
86 | $this->throttleSettings['accountCreationThrottle'], [ |
|
87 | 'type' => 'acctcreate', |
|
88 | 'cache' => $this->cache, |
|
89 | ] |
|
90 | ); |
|
91 | } |
|
92 | if ( !empty( $this->throttleSettings['passwordAttemptThrottle'] ) ) { |
|
93 | $this->passwordAttemptThrottle = new Throttler( |
|
94 | $this->throttleSettings['passwordAttemptThrottle'], [ |
|
@@ 92-99 (lines=8) @@ | ||
89 | ] |
|
90 | ); |
|
91 | } |
|
92 | if ( !empty( $this->throttleSettings['passwordAttemptThrottle'] ) ) { |
|
93 | $this->passwordAttemptThrottle = new Throttler( |
|
94 | $this->throttleSettings['passwordAttemptThrottle'], [ |
|
95 | 'type' => 'password', |
|
96 | 'cache' => $this->cache, |
|
97 | ] |
|
98 | ); |
|
99 | } |
|
100 | } |
|
101 | ||
102 | public function testForAccountCreation( $user, $creator, array $reqs ) { |