Bugzilla – Attachment 79061 Details for
Bug 21374
Self registration e-mail verification does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21374: Fix self registration verification
Bug-21374-Fix-self-registration-verification.patch (text/plain), 1.37 KB, created by
Josef Moravec
on 2018-09-18 20:33:16 UTC
(
hide
)
Description:
Bug 21374: Fix self registration verification
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-09-18 20:33:16 UTC
Size:
1.37 KB
patch
obsolete
>From 21da486f82df64a0e9b00dd7d39c3588e2179331 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >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 <josef.moravec@gmail.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21374
:
79061
|
79085
|
79126