Move logic for checking block behaviour to Block class
authorThalia <thalia.e.chan@googlemail.com>
Wed, 13 Mar 2019 16:08:15 +0000 (16:08 +0000)
committerThalia <thalia.e.chan@googlemail.com>
Wed, 27 Mar 2019 12:54:55 +0000 (12:54 +0000)
commit79706a8c93853caeb44d5025b35ce99db0d1570f
tree1e435f4d0c32d5d74ac60edbab09ce96221f028e
parent8a0f5676c92c486656b260c448c8e0284e5321ca
Move logic for checking block behaviour to Block class

User::trackBlockWithCookie and PasswordReset::isBlocked make decisions
about block behaviour based on the block parameters. This should be
done in the Block class.

Bug: T218905
Change-Id: Ia3f46abacdaf70e720b715b39dc60aed53be2d0a
includes/Block.php
includes/user/PasswordReset.php
includes/user/User.php