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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt (-4 / +3 lines)
Lines 30-36 Link Here
30
                $("fieldset#" + $(this).val() ).show();
30
                $("fieldset#" + $(this).val() ).show();
31
            });
31
            });
32
            $("#resendmail").click(function() {
32
            $("#resendmail").click(function() {
33
                $("#resendform").get(0).submit();
33
                $("#resendform").submit();
34
            });
34
            });
35
        [% IF (new_password) %]
35
        [% IF (new_password) %]
36
            $("#mainform").validate({
36
            $("#mainform").validate({
Lines 97-105 Link Here
97
                            [% END %]
97
                            [% END %]
98
                            <br/>You should have received an email with a link to reset your password.
98
                            <br/>You should have received an email with a link to reset your password.
99
                            <br/>If you did not receive this email, you can request a new one:
99
                            <br/>If you did not receive this email, you can request a new one:
100
                            <form style="display:inline-block;" method="post" id="resendform" action="/cgi-bin/koha/opac-password-recovery.pl">
100
                            <a href="#" id="resendmail">Get new password recovery link</a>
101
                            <form method="post" id="resendform" action="/cgi-bin/koha/opac-password-recovery.pl">
101
                                [% INCLUDE 'csrf-token.inc' %]
102
                                [% INCLUDE 'csrf-token.inc' %]
102
                                <a href="#" id="resendmail">Get new password recovery link</a>
103
                                <input type="hidden" name="op" value="cud-resendEmail" />
103
                                <input type="hidden" name="op" value="cud-resendEmail" />
104
                                <input type="hidden" name="email" value="[% email | url %]" />
104
                                <input type="hidden" name="email" value="[% email | url %]" />
105
                                <input type="hidden" name="username" value="[% username | uri %]" />
105
                                <input type="hidden" name="username" value="[% username | uri %]" />
106
- 

Return to bug 34478