[Koha-bugs] [Bug 21178] Add Koha::Patron::set_password method
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Aug 16 14:58:15 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21178
--- Comment #10 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 77917
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77917&action=edit
Bug 21178: Add Koha::Patron::set_password
This patch introduces the 'set_password' method for Koha::Patron
objects. The main point is to make password changing atomic
(update_password touches the userid on the DB, which should be done
carefully with better error handling, and it is done there only for
legacy backwards compatibility).
A follow-up bug will make the codebase use this instead of
update_password, and use a proper method for changing the userid if
required.
To test:
- Apply this patchset
- Run:
$ kshell
k$ prove t/db_dependent/Koha/Patrons.t
=> SUCCESS: Tests pass!
- Sign off! :-D
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list