Bug 17494: Make sure the same verification token won't be generated twice
commit5f160f675b1de4a12db6717b297c3d7b0a7a5d3d
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 27 Oct 2016 08:04:30 +0000 (27 10:04 +0200)
committerMason James <mtj@kohaaloha.com>
Mon, 12 Dec 2016 01:54:07 +0000 (12 14:54 +1300)
treecbf18fb033cb8b330288ef1099247234f8e7975e
parentc3177f41adb60a03b7683ba8e82be43e4375c449
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>
opac/opac-memberentry.pl