ApiLogin: Remove the first example of outdated flow
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Wed, 15 May 2019 20:30:48 +0000 (22:30 +0200)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Wed, 15 May 2019 20:30:48 +0000 (22:30 +0200)
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

includes/api/ApiLogin.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json

index d7b3332..c3c5318 100644 (file)
@@ -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',
                ];
index 164d5e9..aded1f9 100644 (file)
        "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.",
index 0b5eb39..be336fb 100644 (file)
        "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}}",