mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-07-31 13:20:11 +02:00
Reduce visibility of 'throttle(...)' method that wrongly was 'public'
This commit is contained in:
@@ -745,7 +745,7 @@ class Auth {
|
|||||||
* @throws TooManyRequestsException if the number of allowed attempts/requests has been exceeded
|
* @throws TooManyRequestsException if the number of allowed attempts/requests has been exceeded
|
||||||
* @throws AuthError if an internal problem occurred (do *not* catch)
|
* @throws AuthError if an internal problem occurred (do *not* catch)
|
||||||
*/
|
*/
|
||||||
public function throttle($actionType, $customSelector = null) {
|
private function throttle($actionType, $customSelector = null) {
|
||||||
// if a custom selector has been provided (e.g. username, user ID or confirmation token)
|
// if a custom selector has been provided (e.g. username, user ID or confirmation token)
|
||||||
if (isset($customSelector)) {
|
if (isset($customSelector)) {
|
||||||
// use the provided selector for throttling
|
// use the provided selector for throttling
|
||||||
|
Reference in New Issue
Block a user