AuthManager: Avoid deprecated wfMemcKey()
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 23 May 2017 22:01:34 +0000 (15:01 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 23 May 2017 22:01:34 +0000 (15:01 -0700)
Change-Id: I254f9c057b8a151c593054dd4f2137586abf262a

includes/auth/AuthManager.php

index e9a6edc..c3f798f 100644 (file)
@@ -1660,7 +1660,7 @@ class AuthManager implements LoggerAwareInterface {
                        }
                }
 
-               $backoffKey = wfMemcKey( 'AuthManager', 'autocreate-failed', md5( $username ) );
+               $backoffKey = $cache->makeKey( 'AuthManager', 'autocreate-failed', md5( $username ) );
                if ( $cache->get( $backoffKey ) ) {
                        $this->logger->debug( __METHOD__ . ': {username} denied by prior creation attempt failures', [
                                'username' => $username,