https://bugzilla.wikimedia.org/show_bug.cgi?id=44943

       Web browser: ---
            Bug ID: 44943
           Summary: Account creation MediaWiki API module
                    (action=createaccount) help needs cleanup
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

From <https://www.mediawiki.org/w/api.php>:

---
* action=createaccount *
  Create a new user account.

This module requires write rights
This module only accepts POST requests
Parameters:
  name                - User Name
                        This parameter is required
  password            - Password (ignored if mailpassword is set)
  domain              - Domain (optional)
  token               - Account creation token obtained in first request
  email               - Email address of user
  realname            - Real Name of user
  mailpassword        - Whether to generate and mail a random password to the
user
  reason              - Optional reason for creating the account (used when
mailpassword is set)
  language            - Language code to set for the user.
Examples:
  api.php?action=createaccount&name=testuser&password=test123
 
api.php?action=createaccount&name=testmailuser&mailpassword=true&reason=MyReason
Help page:
  https://www.mediawiki.org/wiki/API:Account creation
---

* It should be "User name" or "Username"; may help to have a pointer here to
what constitutes a valid user name (length limit, character restrictions,
prefix restrictions, etc.)...
* It's completely unclear what the "Domain" parameter is (it's equally unclear
in the GUI as well...); I think most people would assume this would the wiki's
domain name (e.g., "en.wikipedia.org")
* "E-mail" is hyphenated in the MediaWiki interface, I believe
* "Real name", not "Real Name"
* Real name field isn't marked optional (or disabled... not even sure it works
on Wikimedia wikis due a configuration variable)
* It's unclear how you set mailpassword (&mailpassword=true perhaps or
&mailpassword=1)
* It's unclear whether the reason field is used when mailpassword is _not_ set
* Not sure how the language parameter got in here... this isn't available via
index.php, is it?
* Help page URL is missing an underscore

I'm not totally thrilled all of this got through code review and ended up in
production, to be honest.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to