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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/two_factor_auth.tt (-2 / +2 lines)
Lines 54-60 Link Here
54
                        </div>
54
                        </div>
55
55
56
                        [% IF invalid_pin %]
56
                        [% IF invalid_pin %]
57
                            <div class="dialog error">Invalid pin code</div>
57
                            <div class="dialog error">Invalid PIN code</div>
58
                        [% END %]
58
                        [% END %]
59
                        <form id="two-factor-auth" action="/cgi-bin/koha/members/two_factor_auth.pl" method="post">
59
                        <form id="two-factor-auth" action="/cgi-bin/koha/members/two_factor_auth.pl" method="post">
60
                            <fieldset class="rows">
60
                            <fieldset class="rows">
Lines 67-73 Link Here
67
                                        <img id="qr_code" src="[% qr_code | $raw %]" />
67
                                        <img id="qr_code" src="[% qr_code | $raw %]" />
68
                                    </li>
68
                                    </li>
69
                                    <li>
69
                                    <li>
70
                                        <label for="pin_code">Pin code: </label>
70
                                        <label for="pin_code">PIN code: </label>
71
                                        <input type="text" id="pin_code" name="pin_code" value="" />
71
                                        <input type="text" id="pin_code" name="pin_code" value="" />
72
                                    </li>
72
                                    </li>
73
                                </ol>
73
                                </ol>
(-)a/t/db_dependent/selenium/authentication_2fa.t (-2 / +1 lines)
Lines 70-76 SKIP: { Link Here
70
70
71
        $s->fill_form({pin_code => 'wrong_code'});
71
        $s->fill_form({pin_code => 'wrong_code'});
72
        $s->submit_form;
72
        $s->submit_form;
73
        ok($driver->find_element('//div[@class="dialog error"][contains(text(), "Invalid pin code")]'));
73
        ok($driver->find_element('//div[@class="dialog error"][contains(text(), "Invalid PIN code")]'));
74
        is( $patron->get_from_storage->secret, undef, 'secret is not set in DB yet' );
74
        is( $patron->get_from_storage->secret, undef, 'secret is not set in DB yet' );
75
75
76
        my $secret32 = $driver->find_element('//form[@id="two-factor-auth"]//input[@name="secret32"]')->get_value();
76
        my $secret32 = $driver->find_element('//form[@id="two-factor-auth"]//input[@name="secret32"]')->get_value();
77
- 

Return to bug 30768