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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 4 Nov 2016 15:45:40 +0000 (15:45 +0000)
commitdf3a9105e843d8f41abb85b7a1416f538f2896e2
treec379dfa90de99a6fda5c16d4d39e1707d5d87bcf
parent43c6850269d7bc28ec339ccab780592fb306ac4d
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: Kyle M Hall <kyle@bywatersolutions.com>
opac/opac-memberentry.pl