Prevent login-only local password provider from removing passwords
authorGergő Tisza <gtisza@wikimedia.org>
Tue, 15 Nov 2016 04:04:24 +0000 (04:04 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Tue, 15 Nov 2016 07:27:57 +0000 (07:27 +0000)
commit6dbe9b23972d671c933746406de39ad95544142c
tree9d22f5d3106dc4db54af990f18469871181433ed
parent2800d896abaeb5703ce075e61cb30747dd5b2379
Prevent login-only local password provider from removing passwords

When the local password provider is in login-only mode, it should
disable itself as soon as some other primary provider is enabled.
It's impossible to tell whether that is the case though, so err in
the safer direction.

Change-Id: Ie77a9cc6d8f06aa52a893e753d9971e30b0f55e5
includes/auth/LocalPasswordPrimaryAuthenticationProvider.php
tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php