SECURITY: rate-limit and prevent blocked users from changing email
[lhc/web/wiklou.git] / includes / api / ApiLogin.php
index 133f0ce..c3c5318 100644 (file)
@@ -107,7 +107,6 @@ class ApiLogin extends ApiBase {
                }
 
                $authRes = false;
-               $context = new DerivativeContext( $this->getContext() );
                $loginType = 'N/A';
 
                // Check login token
@@ -268,8 +267,6 @@ class ApiLogin extends ApiBase {
 
        protected function getExamplesMessages() {
                return [
-                       'action=login&lgname=user&lgpassword=password'
-                               => 'apihelp-login-example-gettoken',
                        'action=login&lgname=user&lgpassword=password&lgtoken=123ABC'
                                => 'apihelp-login-example-login',
                ];