From: Derk-Jan Hartman Date: Wed, 15 May 2019 20:30:48 +0000 (+0200) Subject: ApiLogin: Remove the first example of outdated flow X-Git-Tag: 1.34.0-rc.0~1685^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=6c72a4d4cad582b3dce080abf16cbf9b80d6e96f;p=lhc%2Fweb%2Fwiklou.git ApiLogin: Remove the first example of outdated flow This first example demonstrates a deprecated flow that we should not be encouraging and definetly shouldn't be before the example that we want to promote Change-Id: Ia1ec99a0fd88cee216fcb80aaebd0a00ce2942a4 --- diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index d7b3332c1f..c3c531802a 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -267,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', ]; diff --git a/includes/api/i18n/en.json b/includes/api/i18n/en.json index 164d5e9eb1..aded1f9cba 100644 --- a/includes/api/i18n/en.json +++ b/includes/api/i18n/en.json @@ -275,7 +275,6 @@ "apihelp-login-param-password": "Password.", "apihelp-login-param-domain": "Domain (optional).", "apihelp-login-param-token": "Login token obtained in first request.", - "apihelp-login-example-gettoken": "Retrieve a login token.", "apihelp-login-example-login": "Log in.", "apihelp-logout-summary": "Log out and clear session data.", diff --git a/includes/api/i18n/qqq.json b/includes/api/i18n/qqq.json index 0b5eb399c7..be336fb9f9 100644 --- a/includes/api/i18n/qqq.json +++ b/includes/api/i18n/qqq.json @@ -262,7 +262,6 @@ "apihelp-login-param-password": "{{doc-apihelp-param|login|password}}\n{{Identical|Password}}", "apihelp-login-param-domain": "{{doc-apihelp-param|login|domain}}", "apihelp-login-param-token": "{{doc-apihelp-param|login|token}}", - "apihelp-login-example-gettoken": "{{doc-apihelp-example|login}}", "apihelp-login-example-login": "{{doc-apihelp-example|login}}\n{{Identical|Log in}}", "apihelp-logout-summary": "{{doc-apihelp-summary|logout}}", "apihelp-logout-example-logout": "{{doc-apihelp-example|logout}}",