1
0
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:
Marco
2015-10-29 20:59:39 +01:00
parent 6ced34789f
commit 6ca92ecb11

View File

@@ -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