Fix creating non-parameterized hashes in ParameterizedPassword
authorMarius Hoch <hoo@online.de>
Sun, 19 Oct 2014 23:54:16 +0000 (01:54 +0200)
committerMarius Hoch <hoo@online.de>
Mon, 20 Oct 2014 20:58:17 +0000 (22:58 +0200)
commitdd52464497213191a15f0b7ea11c4d20b77d707e
treeb8bc39a425de593847f78ef0ddb51f834a42dd75
parentd50b4371a503e9281a2e82a0851ccc6de1ebd266
Fix creating non-parameterized hashes in ParameterizedPassword

I noticed MWOldPassword is broken while working on
I7024b287a7. When generating new passwords for it,
a superfluous : is being added to the serialized hash
within the database (and that breaks parsing so that
people can't ever log in).

As this is not really relevant in the real world (as
nobody is hopefully using plain MD5 passwords anymore),
this doesn't need any backward compatibility handling
for the broken hashes.

Change-Id: I753c135a6de39008488bd7462c2bfcda2cbac116
includes/password/MWOldPassword.php
includes/password/ParameterizedPassword.php
tests/phpunit/includes/TestUser.php