Commit graph

1541 commits

Author SHA1 Message Date
jenkins-bot a32cd4f168 Merge "Add COPYING" 2014-03-11 15:36:11 +00:00
Translation updater bot 52f3a49bf1 Localisation updates from https://translatewiki.net.
Change-Id: I1512aa38cad361597340a4b4c90c2a22ac57483c
2014-03-10 21:26:03 +00:00
Translation updater bot 5b0ccc178f Localisation updates from https://translatewiki.net.
Change-Id: Iffab65500ed45a3ca63c3876405fbc8bde2f8d16
2014-03-09 20:28:02 +00:00
Translation updater bot a2e2133321 Merge "Localisation updates from https://translatewiki.net." 2014-03-07 21:58:04 +00:00
Translation updater bot 9080b0952e Localisation updates from https://translatewiki.net.
Change-Id: I71c35ddc9f83ed929ddc939c581b763c526ddacc
2014-03-07 21:37:22 +00:00
jenkins-bot da37528fc3 Merge "Cleaner response for captcha-related createaccount API failure" 2014-03-06 21:13:53 +00:00
Translation updater bot fbf0f655b7 Localisation updates from https://translatewiki.net.
Change-Id: I6cf9de8d413020d0e45bb34999e0546256a42525
2014-03-04 20:42:56 +00:00
Translation updater bot 54a81f92a6 Localisation updates from https://translatewiki.net.
Change-Id: Iea67bf173ed062b06314a4bad4538b9e98ebaa54
2014-03-03 21:05:20 +00:00
Translation updater bot 2fd297b365 Localisation updates from https://translatewiki.net.
Change-Id: Icac637642e98662e3e14c6154ae9e4267cf8a13a
2014-03-02 20:37:17 +00:00
Brion Vibber fe6fe5410f Cleaner response for captcha-related createaccount API failure
Instead of a generic API error, you get back a non-Success-resulted
creataccount response, with result='NeedCaptcha'. There's also a warning
included with the message key, and of course the captcha key:

array (
  'createaccount' =>
  array (
    'result' => 'NeedCaptcha',
    'warnings' =>
    array (
      0 =>
      array (
        'type' => 'warning',
        'message' => 'captcha-createaccount-fail',
        'params' =>
        array (
        ),
      ),
    ),
    'captcha' =>
    array (
      'type' => 'simple',
      'mime' => 'text/plain',
      'id' => '91510936',
      'question' => '76−3',
    ),
  ),
)

Change-Id: Id1c9e387c592e6d51a5bd58d99ce3d644dfa300b
2014-02-28 14:50:50 -08:00
Translation updater bot 7bf7bb31e5 Localisation updates from https://translatewiki.net.
Change-Id: Ia6f4c85f452064d22877a4b0c78335ed93fef2d0
2014-02-26 21:58:12 +00:00
Translation updater bot 43d5fed223 Localisation updates from https://translatewiki.net.
Change-Id: Ib4c430bf3e38e13367d236f2372184866bad0d54
2014-02-24 21:01:49 +00:00
Translation updater bot 415652df81 Localisation updates from https://translatewiki.net.
Change-Id: I9e8011f38b91969d90db9f8713dfa98f1c5b90d1
2014-02-23 21:38:03 +00:00
YuviPanda bfcd41732d Expect camelcase status codes from action=createaccount
Followup to efcf0a3f61b5bcdf5f9f6f716fa732b6afb9336e.
Bug: 61663

Change-Id: I1c8f1b7cd8cdf74b84869d6a58e5f5ca24b62184
2014-02-20 21:27:32 +05:30
jenkins-bot 22e9a55a65 Merge "Remove unused/incomplete stale HTMLCaptchaField" 2014-02-20 03:29:24 +00:00
Translation updater bot c413b2d03e Localisation updates from https://translatewiki.net.
Change-Id: Ie3e69b7de7e154cdffe244a5988c96623227fe26
2014-02-19 20:03:37 +00:00
Reedy b4e4ee3fca Remove unused/incomplete stale HTMLCaptchaField
Fixup type hint to remove Captcha type

Change-Id: I30cdf2a34dce9f8bf6731c845d7910fad1d42e42
2014-02-18 02:13:12 +00:00
Translation updater bot 0e90f20143 Localisation updates from https://translatewiki.net.
Change-Id: I0fd6e3896503f01be9f5b950a173be9f6be0265d
2014-02-17 20:45:20 +00:00
Translation updater bot 0f7ff83642 Localisation updates from https://translatewiki.net.
Change-Id: Ifbdac4b8ba093d51081d59eb697e21a02e5adfb3
2014-02-15 21:03:18 +00:00
Translation updater bot cd246b10ce Localisation updates from https://translatewiki.net.
Change-Id: Ifb3523f0c54dd70336b2b2492415474396269a77
2014-02-14 20:18:31 +00:00
Translation updater bot 77ccc5ca34 Localisation updates from https://translatewiki.net.
Change-Id: Ic9519e0797cb7dabb7a02497818190269132d016
2014-02-09 20:15:00 +00:00
Translation updater bot 836e6422ab Localisation updates from https://translatewiki.net.
Change-Id: I72af69bffaa6915cb9f38ee3fe36d75af950d81d
2014-02-08 21:22:29 +00:00
Reedy 226657ee00 Add COPYING
Change-Id: I3591a9ced5d6b1866123d6dbcf11b0f3e6529229
2014-02-08 01:51:17 +00:00
Translation updater bot a92fa05ba5 Localisation updates from https://translatewiki.net.
Change-Id: Ib008bb30befd08e951b35a01a0bb8d2406dcd0c5
2014-02-05 21:40:02 +00:00
Translation updater bot 11fc61202a Localisation updates from https://translatewiki.net.
Change-Id: I887e0cce0d5594f77fd54e813670f4ff3013118f
2014-02-03 21:19:04 +00:00
Translation updater bot 0c222edc25 Localisation updates from https://translatewiki.net.
Change-Id: I6c785700411165f09f8d3b86c04c577d5c9b4769
2014-01-28 21:18:20 +00:00
Translation updater bot d2e789380b Localisation updates from https://translatewiki.net.
Change-Id: Ia66fdf97513105b06e843d6221beef76406db2db
2014-01-23 20:11:55 +00:00
Translation updater bot f7652b430e Localisation updates from https://translatewiki.net.
Change-Id: I23fe553088355538c6738eb0446422025718e2df
2014-01-19 20:13:19 +00:00
jenkins-bot 07470eef16 Merge "Update ConfirmEdit to return Status object on AbortNewAccount hook" 2014-01-17 23:32:52 +00:00
jenkins-bot 5a63c99dec Merge "Use new hooks in API action=createaccount for Captcha" 2014-01-17 23:31:32 +00:00
Brion Vibber 19dcbb6fa2 Update ConfirmEdit to return Status object on AbortNewAccount hook
Requires core update I6ae34c0 to actually send the message key back
in the error response. On older MediaWiki versions, behavior should
remain unchanged.

Bug: 60008
Change-Id: If9cc08e44d1d2efacf817b8c6cbb2d71a4e8b692
2014-01-17 13:38:51 -08:00
Brion Vibber 78e6f5ec79 Use new hooks in API action=createaccount for Captcha
Hooks used:
* AddNewAccountApiForm
* AddNewAccountApiResult

This adds a 'captcha' section to the results with the same format
as we provide for editing; you'll get this for instance at the
same time as you do a first-request that prompts for a token.

No modification to the result status is included; presence of
the 'captcha' section is assumed to be enough to prompt the client
to fetch and render the captcha prompt.

Failure to pass a captcha will return an API error message; a
subsequent commit fixes problems with that error message being
hard to machine-read.

Note that logic from inside Captcha::confirmUserCreate has been
pulled out to Captcha::needCreateAccountCaptcha so we don't
send captcha information to users who don't need it.

Requires core changes: If5b7dab8

Sample API client: https://github.com/brion/api-createaccount

Bug: 46072

Change-Id: Id628defaeab2bf5979ca8f4284d14fc42d9c3e46
2014-01-17 12:49:23 -08:00
Translation updater bot 5755d532dd Localisation updates from https://translatewiki.net.
Change-Id: I7903fe4b0c829a9e3fe903532de16f0f8bfcb0d6
2014-01-17 20:38:48 +00:00
jenkins-bot 1a9a389be4 Merge "Fix depreciation warnings in FileBackend construction for ConfirmEdit" 2014-01-16 04:57:29 +00:00
Translation updater bot 3510b6fa42 Localisation updates from https://translatewiki.net.
Change-Id: I968a92611f8e1642e16a037e35604769aa1c6a26
2014-01-15 21:00:28 +00:00
Translation updater bot 9f63ac3e7a Localisation updates from https://translatewiki.net.
Change-Id: Ia906210f6bff6a06f4462b0f51dfbc015eed1662
2014-01-12 20:34:13 +00:00
tonythomas01 bcd0a3fc6c Fix depreciation warnings in FileBackend construction for ConfirmEdit
Modified getBackend() function to add values for WikiID and
lockmanager( array() )
Fixed spacing

Bug: 58614
Change-Id: I448579ac71809365d9f8c64eccfd2e08949f149d
2014-01-13 00:25:17 +05:30
Translation updater bot ef09320a5b Localisation updates from https://translatewiki.net.
Change-Id: I8372cc1b5329eb5c67b536fdd816a0807950e4b9
2014-01-11 22:06:43 +00:00
Translation updater bot 2355fc6170 Localisation updates from https://translatewiki.net.
Change-Id: Ibd4f66a524e2c243906ad2dd3964ab2426255cf4
2014-01-09 20:27:11 +00:00
Translation updater bot 24001e610a Localisation updates from https://translatewiki.net.
Change-Id: I323d01c5066e16cdc8ec41b1a389f2170fd978a8
2014-01-08 20:31:52 +00:00
Translation updater bot c5b5bdd71c Localisation updates from https://translatewiki.net.
Change-Id: Id7195c1bb67b157c26a6723a5dd3a5dff5fbd2de
2014-01-07 20:41:08 +00:00
Translation updater bot 8fcb274c38 Localisation updates from https://translatewiki.net.
Change-Id: I1e626118ffa22481d465408cfebdb6f84db8afa3
2014-01-06 20:04:24 +00:00
Translation updater bot 03020274ef Localisation updates from https://translatewiki.net.
Change-Id: I235fd63658a5d74d26bf5ab789ef0defb0e17cd3
2014-01-05 20:08:22 +00:00
Translation updater bot ee2413ed33 Localisation updates from https://translatewiki.net.
Change-Id: I4c4228fd55fdb44b06ca65e9da6d2692420a2c02
2014-01-03 20:37:47 +00:00
Translation updater bot 1895ce2760 Localisation updates from https://translatewiki.net.
Change-Id: Ibeabc57b5dd4c67e2af06b00fba0c22bd7be0762
2014-01-02 20:45:38 +00:00
Translation updater bot 9674dd5ec9 Localisation updates from https://translatewiki.net.
Change-Id: Ic176dd3d7e78b1bbd551b8abe260f39427363da8
2014-01-01 19:55:44 +00:00
Translation updater bot b22c5d489b Localisation updates from https://translatewiki.net.
Change-Id: I7bfd87bd8c2c20bf82b585cfdcf82321fadf23a7
2013-12-30 19:56:55 +00:00
Translation updater bot 8bd1a45d28 Localisation updates from https://translatewiki.net.
Change-Id: I2bc0c471b27bd6495033cfeffd2da3ba67e05f53
2013-12-29 19:29:00 +00:00
Translation updater bot 4412f13b1a Localisation updates from https://translatewiki.net.
Change-Id: Ieaf3dd68581946357e77e87316f3e9b734ce8195
2013-12-28 19:27:36 +00:00
Translation updater bot 191c5a80fc Localisation updates from https://translatewiki.net.
Change-Id: Ia9c03f0454dacc023edcbe31cd9c239ecb5eae98
2013-12-27 18:34:16 +00:00