Update account creation form validation
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 1 Dec 2016 23:04:21 +0000 (18:04 -0500)
committerAnomie <bjorsch@wikimedia.org>
Thu, 16 Mar 2017 15:42:06 +0000 (15:42 +0000)
commit4d59edf138f697aa200fabc4dcb2310f1c1af4f4
tree5e9e71df4285ea2e8132d1baaa005985339f3f24
parent1e4fdfb825ff96f5d6356b2a50a9532eeeba05ba
Update account creation form validation

Use the cancreateerror returned from list=users&usprop=cancreate for
username validation.

Use the new action=validatepassword to validate entered passwords.

This also injects the resulting errors in the style of HTMLForm's field
validation rather than at the top of the form.

Change-Id: Ie8c1270eb605367556fe36b0b2080eb3f957dc54
includes/htmlform/HTMLFormField.php
maintenance/jsduck/categories.json
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.userlogin.signup.js
resources/src/mediawiki/htmlform/htmlform.Checker.js [new file with mode: 0644]