class MediaWiktory::Wikipedia::Actions::Validatepassword
Validate a password against the wiki's password policies.
Usage:
“`ruby api.validatepassword.password(value).perform # returns string with raw output # or api.validatepassword.password(value).response # returns output parsed and wrapped into Response
object “`
See {Base} for generic explanation of working with MediaWiki actions and {MediaWiktory::Wikipedia::Response} for working with action responses.
All action's parameters are documented as its public methods, see below.
Public Instance Methods
Email address, for use when testing account creation.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/validatepassword.rb, line 42 def email(value) merge(email: value.to_s) end
Password to validate.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/validatepassword.rb, line 26 def password(value) merge(password: value.to_s) end
Real name, for use when testing account creation.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/validatepassword.rb, line 50 def realname(value) merge(realname: value.to_s) end
User name, for use when testing account creation. The named user must not exist.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/validatepassword.rb, line 34 def user(value) merge(user: value.to_s) end