From 6b77697c31e9a23c85dd430d764d92143f850d76 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Tue, 18 Sep 2018 20:17:46 +0000 Subject: [PATCH] Bug 21374: Fix self registration verification Test plan: 0) Do not apply the patch 1) Set PatronSelfRegistration to Allow 2) Set PatronSelfRegistrationVerifyByEmail to Require 3) Try to create a account using self registration and verify it (use link in e-mail or take the url from table mesage_queue ;) The verificatin url return ISE - DBIx::Class::Row::store_column(): No such column 'timestamp' on Koha::Schema::Result::Borrower 4) Apply the patch 5) Try to acces the verification url again - now it should work Signed-off-by: Josef Moravec Signed-off-by: Michal Denar Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- opac/opac-registration-verify.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opac/opac-registration-verify.pl b/opac/opac-registration-verify.pl index 3748f5c330..552b6920c6 100755 --- a/opac/opac-registration-verify.pl +++ b/opac/opac-registration-verify.pl @@ -64,6 +64,8 @@ if ( $patron_attrs->{password} ||= Koha::AuthUtils::generate_password; $patron_attrs->{categorycode} ||= C4::Context->preference('PatronSelfRegistrationDefaultCategory'); + delete $patron_attrs->{timestamp}; + delete $patron_attrs->{verification_token}; my $patron = Koha::Patron->new( $patron_attrs )->store; if ($patron) { -- 2.39.5