Bug 34478: Fix new forms

New forms that need to be fixed after rebase.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-01-30 11:39:39 +01:00
parent 9ff45ceaf6
commit 8bde9000fb
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@
<form action="/cgi-bin/koha/opac-registration-verify.pl" method="post" name="confirm_registration" id="confirm_registration">
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="token" value="[% token | html %]">
<input type="hidden" name="op" value="confirmed">
<input type="hidden" name="op" value="cud-confirmed">
<input type="submit" value="Confirm" class="btn btn-primary">
</form>
</div>

View File

@ -43,7 +43,7 @@ unless ( C4::Context->preference('PatronSelfRegistration') ) {
my $token = $cgi->param('token');
my $op = $cgi->param('op');
my $confirmed;
if ( $op && $op eq 'confirmed' ) {
if ( $op && $op eq 'cud-confirmed' ) {
$confirmed = 1;
}
my $m = Koha::Patron::Modifications->find( { verification_token => $token } );