aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-08-28 20:46:09 +0200
committerGitHub <noreply@github.com>2023-08-28 20:46:09 +0200
commit943f4c246f409d4f9a8e6c3db6a4396f0a5b80e4 (patch)
treea56bf08f4905c081bb42467bc8265cc043c99cbb /lib/private/User
parentfec5ede099f82d4d9978fc1bd3040eb24710672d (diff)
parent25309bcb45232bf30fe719bac1776f0136f7cd7a (diff)
downloadnextcloud-server-943f4c246f409d4f9a8e6c3db6a4396f0a5b80e4.tar.gz
nextcloud-server-943f4c246f409d4f9a8e6c3db6a4396f0a5b80e4.zip
Merge pull request #40079 from nextcloud/techdebt/noid/user-IThrottler-interface-for-DI
techdebt(DI): Use public IThrottler interface which exists since 25
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/Session.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index e7075bce47a..82887f8d029 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -419,7 +419,7 @@ class Session implements IUserSession, Emitter {
* @param string $user
* @param string $password
* @param IRequest $request
- * @param OC\Security\Bruteforce\Throttler $throttler
+ * @param IThrottler $throttler
* @throws LoginException
* @throws PasswordLoginForbiddenException
* @return boolean
@@ -427,7 +427,7 @@ class Session implements IUserSession, Emitter {
public function logClientIn($user,
$password,
IRequest $request,
- OC\Security\Bruteforce\Throttler $throttler) {
+ IThrottler $throttler) {
$remoteAddress = $request->getRemoteAddress();
$currentDelay = $throttler->sleepDelayOrThrowOnMax($remoteAddress, 'login');
@@ -572,11 +572,11 @@ class Session implements IUserSession, Emitter {
*
* @todo do not allow basic auth if the user is 2FA enforced
* @param IRequest $request
- * @param OC\Security\Bruteforce\Throttler $throttler
+ * @param IThrottler $throttler
* @return boolean if the login was successful
*/
public function tryBasicAuthLogin(IRequest $request,
- OC\Security\Bruteforce\Throttler $throttler) {
+ IThrottler $throttler) {
if (!empty($request->server['PHP_AUTH_USER']) && !empty($request->server['PHP_AUTH_PW'])) {
try {
if ($this->logClientIn($request->server['PHP_AUTH_USER'], $request->server['PHP_AUTH_PW'], $request, $throttler)) {