View | Details | Raw Unified | Return to bug 7067
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-registration-invalid.tt (+30 lines)
Line 0 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog
3
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
<body id="opac-main">
6
[% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
7
   <div id="bd">
8
[% INCLUDE 'masthead.inc' %]
9
10
<div id="yui-main">
11
    <div class="yui-b">
12
        <div id="loggedin" class="yui-ge">
13
            <div class="yui-u first">
14
                <h1>Registration invalid!</h1>
15
16
                <p>There were problems processing your registration. Please contact your library for help.</p>
17
18
            </div>
19
        </div>
20
    </div>
21
</div>
22
23
[% IF ( OpacNav ) %]<div class="yui-b">
24
    <div id="opacnav" class="container">
25
        [% INCLUDE 'navigation.inc' %]
26
    </div>
27
[% END %]
28
29
</div>
30
[% INCLUDE 'opac-bottom.inc' %]
(-)a/opac/opac-registration-verify.pl (-14 / +21 lines)
Lines 32-53 unless ( C4::Context->preference('PatronSelfRegistration') ) { Link Here
32
    exit;
32
    exit;
33
}
33
}
34
34
35
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
36
    {
37
        template_name   => "opac-registration-confirmation.tmpl",
38
        type            => "opac",
39
        query           => $cgi,
40
        authnotrequired => 1,
41
    }
42
);
43
44
$template->param(
45
    OpacPasswordChange => C4::Context->preference('OpacPasswordChange') );
46
47
my $token = $cgi->param('token');
35
my $token = $cgi->param('token');
48
my $m = Koha::Borrower::Modifications->new( verification_token => $token );
36
my $m = Koha::Borrower::Modifications->new( verification_token => $token );
49
37
38
my ( $template, $borrowernumber, $cookie );
50
if ( $m->Verify() ) {
39
if ( $m->Verify() ) {
40
    ( $template, $borrowernumber, $cookie ) = get_template_and_user(
41
        {
42
            template_name   => "opac-registration-confirmation.tmpl",
43
            type            => "opac",
44
            query           => $cgi,
45
            authnotrequired => 1,
46
        }
47
    );
48
49
    $template->param(
50
        OpacPasswordChange => C4::Context->preference('OpacPasswordChange') );
51
51
    my $borrower = $m->GetModifications();
52
    my $borrower = $m->GetModifications();
52
53
53
    my $password;
54
    my $password;
Lines 68-74 if ( $m->Verify() ) { Link Here
68
69
69
}
70
}
70
else {
71
else {
71
72
    ( $template, $borrowernumber, $cookie ) = get_template_and_user(
73
        {
74
            template_name   => "opac-registration-invalid.tmpl",
75
            type            => "opac",
76
            query           => $cgi,
77
            authnotrequired => 1,
78
        }
79
    );
72
}
80
}
73
81
74
output_html_with_http_headers $cgi, $cookie, $template->output;
82
output_html_with_http_headers $cgi, $cookie, $template->output;
75
- 

Return to bug 7067