Default the "watchlisttoken" value to a derived HMAC value
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 3 Sep 2015 00:02:38 +0000 (17:02 -0700)
committerLegoktm <legoktm.wikipedia@gmail.com>
Thu, 3 Sep 2015 06:22:30 +0000 (06:22 +0000)
commitcd027382e0a57de318ac851c958e9f4cf65a56ea
tree0114b9a20b5f5dc49f4817c88669719a7234adca
parent89a167b500dc857f9def03bd83d951161d312d4d
Default the "watchlisttoken" value to a derived HMAC value

* This got created if unset on API or GUI preferences access,
  which leads to writes on GET requests. Try to avoid that
  deriving it from user_token, unless overriden. This also
  means that changing the password always resets the key,
  which is how these things work on most sites anyway.
* The whole getTokenFromOption() method is deprecated, and
  this functionality is already in OAuth.

Bug: T92357
Change-Id: I96c0d6f6e535e67545049f01205430249eea8da0
RELEASE-NOTES-1.26
includes/User.php
includes/specials/SpecialResetTokens.php