]> git.koha-community.org Git - koha.git/commit
Bug 17494: Make sure the same verification token won't be generated twice
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 27 Oct 2016 08:04:30 +0000 (10:04 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 19 Dec 2016 10:35:57 +0000 (11:35 +0100)
commitaa1b200857c3583ff117fae03cce51154814007e
tree2f3bf33635378fcc2a19c666bd96253baf00f7da
parent2618afd8bb9f72b29c36b0d49da9c0f51b6fb7fd
Bug 17494: Make sure the same verification token won't be generated twice

Well, this patch does not enforce the unique constraint but mimic what
is already done in C4::ImportExportFramework and Koha::Upload where
md5_hex is used.

Test plan:
Have a look at the code and confirm that it adds more randomness to the
hashed string

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Mason James <mtj@kohaaloha.com>
(cherry picked from commit 5f160f675b1de4a12db6717b297c3d7b0a7a5d3d)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
opac/opac-memberentry.pl