CheckBlocksSecondaryAuthenticationProvider: Avoid user language during auto-creation
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 5 Oct 2017 18:50:44 +0000 (14:50 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 5 Oct 2017 18:50:44 +0000 (14:50 -0400)
commitce38c198a4eb216b1ad5314b27edaf4789508d28
tree27d02a7a7715e092b57e5f75c45ff0781be00a77
parenta7f7bc798161b9279fef38f6d44b8ee9b6055397
CheckBlocksSecondaryAuthenticationProvider: Avoid user language during auto-creation

If a user being auto-created is blocked from account creation without a
reason given, CheckBlocksPrimaryAuthProvider is triggering a
"User::loadFromSession called before the end of Setup.php" log message
when trying to fill in a reason using 'blockednoreason'.

In this situation, use the content language instead.

Bug: T124367
Change-Id: Id94c919cdba5e4218b709ba8ac9d0fa17f0c3f8e
includes/auth/CheckBlocksSecondaryAuthenticationProvider.php