MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples:


(main | validatepassword)
  • Denna modul kräver läsrättigheter.
  • Denna modul accepterar endast POST-begäranden.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Validate a password against the wiki's password policies.

Validity is reported as Good if the password is acceptable, Change if the password may be used for login but must be changed, or Invalid if the password is not usable.


Password to validate.

Den här parametern är obligatorisk.

User name, for use when testing account creation. The named user must not exist.

Typ: användare, genom något av användarnamn och användar-ID (t.ex. "#12345")

Email address, for use when testing account creation.


Real name, for use when testing account creation.

Validate the password foobar for the current user.
api.php?action=validatepassword&password=foobar [open in sandbox]
Validate the password qwerty for creating user Example.
api.php?action=validatepassword&password=querty&user=Example [open in sandbox]