From c554c2cfacf270f41b1a92270c459c23359dba7c 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 --- 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 3748f5c..552b692 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.1.4