[Koha-bugs] [Bug 23865] Throw exceptions from Koha::AuthUtils::is_password_valid

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 22 12:42:37 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23865

--- Comment #1 from Lari Taskula <lari.taskula at hypernova.fi> ---
Created attachment 94522
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94522&action=edit
Bug 23865: Throw exceptions in Koha::AuthUtils::is_valid_password

Exceptions are currently thrown in Koha::Patron->set_password.

We need to validate password (with exceptions) without wanting to set
the password.

To test:
1. Make sure is_valid_password is not used anywhere in codebase apart from
   Koha::Patron::set_password (grep -rn 'is_valid_password')
2. prove t/db_dependent/Koha/Patrons.t
   Observe ok 35 - ->set_password

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list