Bug 9569: Fix AutoLocation - handle .* for subnets
commit1db4fba39258901c2a97574e6f263d0b86b2ac8a
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Aug 2016 13:02:58 +0000 (16 14:02 +0100)
committerMason James <mtj@kohaaloha.com>
Mon, 30 Jan 2017 22:51:19 +0000 (31 11:51 +1300)
tree357db1082aab3e3608264506fa8c09040c62e8bc
parent99a2c87fc1fe730a428fa5080ac0167656c718f5
Bug 9569: Fix AutoLocation - handle .* for subnets

The example in branches.tt is:
  Can be entered as a single IP, or a subnet such as 192.168.1.*

But actually the regex in C4::Auth does not handle subnets.

Test plan:
0/ Apply all the patches
1/ Switch AutoLocation on
2/ Define a subnet (192.168.0.* if your ip is like 192.168.0.X) in the IP
range of your library
3/ Log in on the staff interface
=> Should work

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
C4/Auth.pm