Bug 9611: (follow-up) move new password hashing routines to separate module
authorGalen Charlton <gmc@esilibrary.com>
Wed, 9 Oct 2013 03:29:22 +0000 (03:29 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 9 Oct 2013 03:29:22 +0000 (03:29 +0000)
commit547c6d29499a3e1306a27050b407560a1c4f8fb6
tree38ffe958e283c3ab446e6cdf172f676f956a1248
parente276bea3eee02aeaf2c49edc19a095735c5e5359
Bug 9611: (follow-up) move new password hashing routines to separate module

The move avoids a problem where many modules would gain
a dependency on C4::Auth just because C4::Members needs access
to hash_password().

This patch also adds a couple unit tests for the new password
hashing code.

To test:

[1] Verify that there are no regressions on the test plan for bug
    9611.
[2] Verify that t/AuthUtils.t and t/db_dependent/Auth.t pass.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Auth.pm
C4/Auth_with_ldap.pm
C4/Members.pm
Koha/AuthUtils.pm [new file with mode: 0644]
members/member-password.pl
opac/opac-passwd.pl
t/AuthUtils.t [new file with mode: 0644]
t/db_dependent/Auth.t